function InvalidCallbackError::invalidIdentifier
MUST be thrown if any operation (except disable() and cancel()) is attempted with an invalid callback identifier.
An invalid callback identifier is any identifier that is not yet emitted by the driver or cancelled by the user.
5 calls to InvalidCallbackError::invalidIdentifier()
- AbstractDriver::enable in vendor/
revolt/ event-loop/ src/ EventLoop/ Internal/ AbstractDriver.php - Enable a callback to be active starting in the next tick.
- AbstractDriver::getType in vendor/
revolt/ event-loop/ src/ EventLoop/ Internal/ AbstractDriver.php - Returns the type of the callback identified by the given callback identifier.
- AbstractDriver::isEnabled in vendor/
revolt/ event-loop/ src/ EventLoop/ Internal/ AbstractDriver.php - Returns whether the callback identified by the given callback identifier is currently enabled.
- AbstractDriver::isReferenced in vendor/
revolt/ event-loop/ src/ EventLoop/ Internal/ AbstractDriver.php - Returns whether the callback identified by the given callback identifier is currently referenced.
- AbstractDriver::reference in vendor/
revolt/ event-loop/ src/ EventLoop/ Internal/ AbstractDriver.php - Reference a callback.
File
-
vendor/
revolt/ event-loop/ src/ EventLoop/ InvalidCallbackError.php, line 31
Class
Namespace
Revolt\EventLoopCode
public static function invalidIdentifier(string $callbackId) : self {
return new self($callbackId, self::E_INVALID_IDENTIFIER, 'Invalid callback identifier ' . $callbackId);
}