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

Breadcrumb

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

function DebugScope::currentFiberId

@phan-suppress PhanUndeclaredClassReference @phan-suppress PhanUndeclaredClassMethod

2 calls to DebugScope::currentFiberId()
DebugScope::__construct in vendor/open-telemetry/context/DebugScope.php
DebugScope::__destruct in vendor/open-telemetry/context/DebugScope.php

File

vendor/open-telemetry/context/DebugScope.php, line 90

Class

DebugScope
@internal

Namespace

OpenTelemetry\Context

Code

private static function currentFiberId() : ?int {
    if (PHP_VERSION_ID < 80100) {
        return null;
    }
    assert(class_exists(Fiber::class, false));
    if (!($fiber = Fiber::getCurrent())) {
        return null;
    }
    return spl_object_id($fiber);
}

API Navigation

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