function TracingDriver::cancel
Overrides Driver::cancel
2 calls to TracingDriver::cancel()
- TracingDriver::defer in vendor/
revolt/ event-loop/ src/ EventLoop/ Driver/ TracingDriver.php - Defer the execution of a callback.
- TracingDriver::delay in vendor/
revolt/ event-loop/ src/ EventLoop/ Driver/ TracingDriver.php - Delay the execution of a callback.
File
-
vendor/
revolt/ event-loop/ src/ EventLoop/ Driver/ TracingDriver.php, line 134
Class
Namespace
Revolt\EventLoop\DriverCode
public function cancel(string $callbackId) : void {
$this->driver
->cancel($callbackId);
if (!isset($this->cancelTraces[$callbackId])) {
$this->cancelTraces[$callbackId] = $this->formatStacktrace(\debug_backtrace(\DEBUG_BACKTRACE_IGNORE_ARGS));
}
unset($this->enabledCallbacks[$callbackId], $this->unreferencedCallbacks[$callbackId]);
}