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

next()

Advances to and returns the result of the next child task.

Declaration 宣言

mutating func next() async throws -> ThrowingTaskGroup<ChildTaskResult, Failure>.Iterator.Element?

Return Value 戻り値

The value returned by the next child task that completes, or nil if there are no remaining child tasks,

Discussion 解説

The elements returned from this method appear in the order that the tasks completed, not in the order that those tasks were added to the task group. このメソッドから返される要素それらは、タスクそれらが完了した順番に現れます、それらタスクがタスクグループに加えられた順番にではなく。 After this method returns nil, this iterator is guaranteed to never produce more values.

For more information about the iteration order and semantics, see ThrowingTaskGroup.next() 反復順序と意味論についてのさらなる情報として、ThrowingTaskGroup.next()を見てください。

Relationships 関係

From Protocol 由来プロトコル