Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Driver.php

function Driver::reference

Reference a callback.

This will keep the event loop alive whilst the callback is still being monitored. Callbacks have this state by default.

Parameters

string $callbackId The callback identifier.:

Return value

string The callback identifier.

Throws

InvalidCallbackError If the callback identifier is invalid.

2 methods override Driver::reference()
AbstractDriver::reference in vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php
Reference a callback.
TracingDriver::reference in vendor/revolt/event-loop/src/EventLoop/Driver/TracingDriver.php
Reference a callback.

File

vendor/revolt/event-loop/src/EventLoop/Driver.php, line 228

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\EventLoop

Code

public function reference(string $callbackId) : string;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal