PHP 8.1.28 Released!

Fiber::getCurrent

(PHP 8 >= 8.1.0)

Fiber::getCurrent获取当前正在执行的 Fiber 实例

说明

public static Fiber::getCurrent(): ?Fiber

参数

此函数没有参数。

返回值

返回当前正在执行的 Fiber 实例,如果在 Fiber 外部调用此方法,则返回 null

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top