php8.5
Home/ Manual/ ev / evidle/ EvIdle::__construct

EvIdle::__construct

PHP function Edit on GitHub ✎

(PECL ev >= 0.2.0)

Constructs the EvIdle watcher object

Description

EvIdle::__construct(callable $callback, [mixed $data], [int $priority])

Constructs the EvIdle watcher object and starts the watcher automatically.

Parameters

callback

See Watcher callbacks.

data

Custom data associated with the watcher.

priority

Watcher priority

See Also

  • EvIdle::createStopped
  • EvLoop::idle

Source: reference/ev/evidle/construct.xml · from the official PHP manual (php/doc-en)