TaskGroup::isFinished
(PHP 8.6+, True Async 1.0)
php
public TaskGroup::isFinished(): boolReturns 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