function Driver::disable
Disable a callback immediately.
A callback MUST be disabled immediately, e.g. if a deferred callback disables a later deferred callback, the second deferred callback isn't executed in this tick.
Disabling a callback MUST NOT invalidate the callback. Calling this function MUST NOT fail, even if passed an invalid callback identifier.
Parameters
string $callbackId The callback identifier.:
Return value
string The callback identifier.
2 methods override Driver::disable()
- AbstractDriver::disable in vendor/
revolt/ event-loop/ src/ EventLoop/ Internal/ AbstractDriver.php - Disable a callback immediately.
- TracingDriver::disable in vendor/
revolt/ event-loop/ src/ EventLoop/ Driver/ TracingDriver.php - Disable a callback immediately.
File
-
vendor/
revolt/ event-loop/ src/ EventLoop/ Driver.php, line 214
Class
- Driver
- The driver MUST run in its own fiber and execute callbacks in a separate fiber. If fibers are reused, the driver needs to call {
Namespace
Revolt\EventLoopCode
public function disable(string $callbackId) : string;