PHP.nl

Fiber::suspend

Fiber::suspend

Suspends execution of the current fiber

mixed **Fiber::suspend** mixed $value

Suspends execution of the current fiber. The value provided to this method will be returned from the call to , , or that switched execution into the current fiber. Fiber::start``Fiber::resume``Fiber::throw

When the fiber is resumed, this method returns the value provided to . If the fiber is resumed using , the exception given to that method will be thrown from the call to this method. Fiber::resume``Fiber::throw

If this method is called from outside a fiber, a will be thrown. FiberError

value The value to return from the call to , , or that switched execution into the current fiber. Fiber::start``Fiber::resume``Fiber::throw

The value provided to . Fiber::resume

Documentatie