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

EvPrepare::createStopped

PHP function Edit on GitHub ✎

(PECL ev >= 0.2.0)

Creates a stopped instance of EvPrepare watcher

Description

EvPrepare::createStopped(callable $callback, mixed $data = null, int $priority = 0): EvPrepare

Creates a stopped instance of EvPrepare watcher. Unlike EvPrepare::__construct, this method doesn't start the watcher automatically.

Parameters

callback

See Watcher callbacks.

data

Custom data associated with the watcher.

priority

Watcher priority

Return Values

Returns EvPrepare object on success.

See Also

  • EvPrepare::__construct
  • EvWatcher::start

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