FiberSettlement
FinalYes
Settles once a handler fiber the runtime suspended is the server's again: suspended for it, or returned.
FiberSchedulerInterface::wait() waits on it.
Table of Contents
Properties
- $callbacks : array<int, callable(): void>
- $settled : bool
Methods
- isSettled() : bool
- then() : void
- Calls $callback once settled, right away when it already is.
Properties
$callbacks
private
array<int, callable(): void>
$callbacks
= []
$settled
private
bool
$settled
= false
Methods
isSettled()
public
isSettled() : bool
Return values
boolthen()
Calls $callback once settled, right away when it already is.
public
then(callable(): void $callback) : void
The handler fiber is still running when $callback is called: see FiberSchedulerInterface::wait().
Parameters
- $callback : callable(): void