main
spin
public function spin(int $attempts, float $interval, string $resource, float $ttl, ?string $token = null) {