TaskGroup::dispose

(PHP 8.6+, True Async 1.0)

public TaskGroup::dispose(): void

Calls dispose() on the group’s internal scope, which results in cancelling all coroutines.

See Also