Fiber::throw
(PHP 8 >= 8.1.0)
Fiber::throw — 用一个异常来恢复 fiber 的执行
参数
-
exception
-
在当前调用 Fiber::suspend() 所在的位置,要抛出的异常。
返回值
下次调用 Fiber::suspend() 所提供的值;如果 fiber 已返回,则是 null
。
如果 fiber 暂停前抛出一个异常,它将会从调用本方法的位置抛出。

User Contributed Notes
There are no user contributed notes for this page.