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

Breadcrumb

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

function FiberLocal::get

Return value

T

File

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

Class

FiberLocal
Fiber local storage.

Namespace

Revolt\EventLoop

Code

public function get() : mixed {
    $fiberStorage = self::getFiberStorage();
    if (!isset($fiberStorage[$this])) {
        $fiberStorage[$this] = [
            ($this->initializer)(),
        ];
    }
    return $fiberStorage[$this][0];
}
RSS feed
Powered by Drupal