Instance Method インスタンスメソッド

cancelAll()

Cancel all of the remaining tasks in the group. グループの中の残っているタスクの全てを取り消します。

Declaration 宣言

func cancelAll()

Discussion 解説

After cancellation, any new results from the tasks in this group are silently discarded.

If you add a task to a group after canceling the group, that task is canceled immediately after being added to the group.

This method can only be called by the parent task that created the task group.

See Also 参照

Canceling Tasks タスクの取り消し

Related Documentation 関連文書

Task.isCancelled

TaskGroup.isCancelled