phasync\Internal\FiberExceptionHolder
final
class
Documentation
This class stores an exception object that is associated with a Fiber in
phasync. If the exception holder is garbage collected, the handler is
invoked with the exception. Ideally, the exception should be retrieved
with the FiberExceptionHolder::get() method. After this, the
FiberExceptionHolder instance should be returned to the object pool
for reuse.
Properties (5)
private
static
array $pool
private
bool $handled
private
?
Throwable $exception
private
?
Closure $handler
private
WeakReference $fiberRef
Indicates if there still exists a reference to the fiber that
Methods (8)
Documentation missing
Documentation missing
True if the exception has been retrieved.
True if the fiber that threw the exception no longer exists.
Documentation missing
Documentation missing
Documentation missing
Documentation missing