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

Breadcrumb

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

function Driver::getSuspension

Returns an object used to suspend and resume execution of the current fiber or {main}.

Calls from the same fiber will return the same suspension object.

Return value

Suspension

2 methods override Driver::getSuspension()
AbstractDriver::getSuspension in vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php
Returns an object used to suspend and resume execution of the current fiber or {main}.
TracingDriver::getSuspension in vendor/revolt/event-loop/src/EventLoop/Driver/TracingDriver.php
Returns an object used to suspend and resume execution of the current fiber or {main}.

File

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

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 getSuspension() : Suspension;

API Navigation

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