Structure_Concurrency5.9.0
Iterator
The asynchronous iterator for iterating an asynchronous stream.
- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
struct Iterator
This type is not Sendable
. Don’t use it from multiple concurrent contexts. It is a programmer error to invoke next()
from a concurrent context that contends with another such call, which results in a call to fatalError()
.
Citizens in _Concurrency
Conformances
protocol AsyncIteratorProtocol
A type that asynchronously supplies the values of a sequence one at a time.
Members
func next(
) async throws -> Element? The next value from the asynchronous stream.