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

Breadcrumb

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

function Driver::getHandle

Get the underlying loop handle.

Example: the `uv_loop` resource for `libuv` or the `EvLoop` object for `libev` or `null` for a stream_select driver.

Note: This function is *not* exposed in the `Loop` class. Users shall access it directly on the respective loop instance.

Return value

null|object|resource The loop handle the event loop operates on. `null` if there is none.

5 methods override Driver::getHandle()
EvDriver::getHandle in vendor/revolt/event-loop/src/EventLoop/Driver/EvDriver.php
Get the underlying loop handle.
EventDriver::getHandle in vendor/revolt/event-loop/src/EventLoop/Driver/EventDriver.php
Get the underlying loop handle.
StreamSelectDriver::getHandle in vendor/revolt/event-loop/src/EventLoop/Driver/StreamSelectDriver.php
Get the underlying loop handle.
TracingDriver::getHandle in vendor/revolt/event-loop/src/EventLoop/Driver/TracingDriver.php
@inheritdoc
UvDriver::getHandle in vendor/revolt/event-loop/src/EventLoop/Driver/UvDriver.php

File

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

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 getHandle() : mixed;

API Navigation

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