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

Breadcrumb

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

function EventLoop::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

File

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

Class

EventLoop
Accessor to allow global access to the event loop.

Namespace

Revolt

Code

public static function getSuspension() : Suspension {
    return self::getDriver()->getSuspension();
}

API Navigation

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