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(int|null $timeoutSeconds = null, int $timeoutMicroseconds = 0, 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(int|null $timeoutSeconds = null, int $timeoutMicroseconds = 0, int|null $maxEvents = null)

No description

Parameters

int|null $timeoutSeconds
int $timeoutMicroseconds
int|null $maxEvents

Return Value

array

Backend getBackend()

No description

Return Value

Backend