Interop\Async\Loop\Driver::cancel PHP Méthode

cancel() abstract public méthode

This will detatch the event loop from all resources that are associated to the watcher. After this operation the watcher is permanently invalid. Calling this function MUST NOT fail, even if passed an invalid watcher.
abstract public cancel ( string $watcherId ) : void
$watcherId string The watcher identifier.
Résultat void
    public abstract function cancel($watcherId);