Lines Matching refs:Fiber

1 # Fiber Extension
3 Fiber implementation for PHP using native C fibers.
28 Fibers are made by creating an instance of the `Fiber` class.
31 final class Fiber
51 * Resumes the fiber, returning the given value from {@see Fiber::suspend()}.
64 * Throws the given exception into the fiber from {@see Fiber::suspend()}.
109 … execution of the fiber. The fiber may be resumed with {@see Fiber::resume()} or {@see Fiber::thro…
113 * @param mixed $value Value to return from {@see Fiber::resume()} or {@see Fiber::throw()}.
115 * @return mixed Value provided to {@see Fiber::resume()}.
118 * @throws Throwable Exception provided to {@see Fiber::throw()}.
124Fiber` object is created using `new Fiber(callable $callback)` with any callable. The callable nee…
126Fiber::suspend()` suspends execution of the current fiber and returns execution to the call to `Fi…
130 * returning a value from `Fiber::suspend()` using `Fiber->resume()`
131 * throwing an exception from `Fiber::suspend()` using `Fiber->throw()`
133 `Fiber->getReturn()` returns the value returned from a terminated fiber (`NULL` is returned if the …
135 `Fiber::getCurrent()` returns the currently executing `Fiber` instance or `NULL` if called from `{m…
141 …ect executing fibers. A `ReflectionFiber` object can be created from any `Fiber` object, even if i…
147 * @param Fiber $fiber Any Fiber object, including those that are not started or have
150 public function __construct(Fiber $fiber) {}
153 * @return Fiber The reflected Fiber object.
155 public function getFiber(): Fiber {}
174 * @return array Fiber backtrace, similar to {@see debug_backtrace()}
192Fiber::suspend()` may not be invoked in a force-closed fiber, just as `yield` cannot be used in a …
194 #### Fiber Stacks
200 This extension *only* works with PHP 8.0. The [Fiber RFC](https://wiki.php.net/rfc/fibers) was acce…