Since: 8.6

final class Context (View source)

Methods

__construct(Backend $backend = Backend::Epoll)

No description

add(Handle $handle, array $events, mixed $data = null)

No description

array
wait(Duration|null $timeout = null, int|null $maxEvents = null)

No description

Backend
getBackend()

No description

Details

__construct(Backend $backend = Backend::Epoll)

No description

Parameters

Backend $backend

Watcher add(Handle $handle, array $events, mixed $data = null)

No description

Parameters

Handle $handle
array $events
mixed $data

Return Value

Watcher

array wait(Duration|null $timeout = null, int|null $maxEvents = null)

No description

Parameters

Duration|null $timeout
int|null $maxEvents

Return Value

array

Backend getBackend()

No description

Return Value

Backend