php8.5
Home/ Manual/ ev / evprepare/ EvPrepare::__construct

EvPrepare::__construct

PHP function Edit on GitHub ✎

(PECL ev >= 0.2.0)

Constructs EvPrepare watcher object

Description

EvPrepare::__construct(string $callback, [string $data], [string $priority])

Constructs EvPrepare watcher object. And starts the watcher automatically. If a stopped watcher is needed, consider using EvPrepare::createStopped

Parameters

callback

See Watcher callbacks.

data

Custom data associated with the watcher.

priority

Watcher priority

See Also

  • EvCheck

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