cm_util

Module task_group

Source

Structsยง

  • A simple wrapper for TaskGroup that stores the TaskGroup in an Arc so it can be passed between threads.
  • Holds a weak reference to the internal TaskGroup, and can spawn futures on it as long as the reference is still valid. If a task group is to hold a future that wants to spawn other tasks on the same group, this future should hold a WeakTaskGroup so that there is no reference cycle between the task group and tasks on the task group.