Nexus API Reference

WorkerServerRuntime extends ServerRuntime
in package

FinalYes

Table of Contents

Properties

$app  : CompiledApplication|null
$failureBucket  : array{count: int, since: float}
$system  : ActorSystem|null
$transport  : WorkerTransport|null
Optional worker-pool transport (e.g. ThreadQueueTransport in the Swoole-threads variant). When present, bindWorkerStop calls stop() on it so the transport's receive loop exits cooperatively — without this, the coroutine blocks on its poll loop and the worker can't exit, triggering Swoole's "all coroutines asleep - deadlock" fatal.

Methods

reset()  : void

Properties

$failureBucket

public array{count: int, since: float} $failureBucket = ['count' => 0, 'since' => 0.0]

$transport

Optional worker-pool transport (e.g. ThreadQueueTransport in the Swoole-threads variant). When present, bindWorkerStop calls stop() on it so the transport's receive loop exits cooperatively — without this, the coroutine blocks on its poll loop and the worker can't exit, triggering Swoole's "all coroutines asleep - deadlock" fatal.

public WorkerTransport|null $transport = null

Methods


        
On this page

Search results