TrueAsync
  • Home
  • Documentation
  • Download
  • RFC
  • Motivation
  • Architecture
  • Contributing
EnglishРусскийDeutschFrançaisEspañolItalianoУкраїнська中文한국어

TaskGroup::dispose

Dispose of the group scope.

Getting Started
Introduction Why Asynchrony?
Configuration
INI Settings
Components
Coroutine
Scope
Channels
Future
Context
Cancellation Zombie Coroutines Exceptions Interfaces
Async\Pool
PDO Pool
TaskGroup
__construct()spawn()spawnWithKey()awaitCompletion()cancel()dispose()finally()seal()isFinished()isSealed()count()getResults()getErrors()getIterator()suppressErrors()all()any()race()
TaskSet
FileSystemWatcher
Thread
ThreadChannel
ThreadPool
Function Reference
Supported Functions spawn() spawn_with() await() await_all_or_fail() await_all() await_any_or_fail() await_first_success() await_any_of_or_fail() await_any_of() iterate() suspend() delay() timeout() protect() current_coroutine() current_context() coroutine_context() root_context() get_coroutines() signal() graceful_shutdown()
Integrations
FrankenPHP
Research
IO-Bound vs CPU-bound Why Coroutines Work Concurrency Statistics Swoole in Practice Python asyncio

TaskGroup::dispose ​

(PHP 8.6+, True Async 1.0)

php
public TaskGroup::dispose(): void

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

See Also ​

  • TaskGroup::cancel --- Cancel all tasks
  • Scope --- Coroutine lifecycle management
Edit this page
TrueAsync

True asynchronous programming for PHP. Built into the language core.

Project

  • Home
  • Documentation
  • Download
  • Roadmap

Community

  • GitHub
  • Issues
  • Discussions
  • Discord

Resources

  • Getting Started
  • API Reference
  • Examples
© 2025–2026 TrueAsync. MIT License.