array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'fiber.getcurrent.php', 1 => 'Fiber::getCurrent', 2 => 'Gets the currently executing Fiber instance', ), 'up' => array ( 0 => 'class.fiber.php', 1 => 'Fiber', ), 'prev' => array ( 0 => 'fiber.suspend.php', 1 => 'Fiber::suspend', ), 'next' => array ( 0 => 'class.weakreference.php', 1 => 'WeakReference', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'language/predefined/fiber/getcurrent.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Fiber::getCurrent

(PHP 8 >= 8.1.0)

Fiber::getCurrentGets the currently executing Fiber instance

Опис

public static Fiber::getCurrent(): ?Fiber

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

Returns the currently executing Fiber instance or null if this method is called from outside a fiber.