(PHP 8 >= 8.1.0)
Fiber::isTerminated — Determines if the fiber has terminated
This function has no parameters.
Returns true
only after the fiber has terminated, either by returning or throwing an exception;
otherwise false
is returned.