TaskGroup::isFinished
(PHP 8.6+, True Async 1.0)
public TaskGroup::isFinished(): bool
Returns true if the queue is empty and there are no active coroutines.
This state may be temporary: if the group is not sealed, new tasks can still be added.
See Also
- TaskGroup::isSealed — Check if the group is sealed
- TaskGroup::awaitCompletion — Wait for completion