Type Aliasswift 6.1.2_Concurrency
Element
- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
typealias Element = ChildTaskResult
typealias Element = ChildTaskResult
import _Concurrency
struct Iterator
A type that provides an iteration interface over the results of tasks added to the group.
@frozen struct ThrowingTaskGroup<ChildTaskResult, Failure> where ChildTaskResult : Sendable, Failure : Error
A group that contains throwing, dynamically created child tasks.
mutating func cancel()
mutating func next() async throws -> ThrowingTaskGroup<ChildTaskResult, Failure>.Iterator.Element?
Advances to and returns the result of the next child task.
mutating func next(isolation actor: isolated (any Actor)?) async throws(Failure) -> ThrowingTaskGroup<ChildTaskResult, Failure>.Iterator.Element?
Advances to and returns the result of the next child task.