function Driver::cancel
Cancel a callback.
This will detach the event loop from all resources that are associated to the callback. After this operation the callback is permanently invalid. Calling this function MUST NOT fail, even if passed an invalid identifier.
Parameters
string $callbackId The callback identifier.:
2 methods override Driver::cancel()
- AbstractDriver::cancel in vendor/
revolt/ event-loop/ src/ EventLoop/ Internal/ AbstractDriver.php - Cancel a callback.
- TracingDriver::cancel in vendor/
revolt/ event-loop/ src/ EventLoop/ Driver/ TracingDriver.php - Cancel a callback.
File
-
vendor/
revolt/ event-loop/ src/ EventLoop/ Driver.php, line 199
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 cancel(string $callbackId) : void;