Interop\Async\Loop\Driver::cancel PHP Method

cancel() abstract public method

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.
return void
    public abstract function cancel($watcherId);