Structuresoto-core 7.4.0SotoCore
AsyncIterator
AnyAsyncSequence.swift:31struct AsyncIterator
struct AsyncIterator
import SotoCore
struct AnyAsyncSequence<Element>
init<SequenceOfBytes>(_ asyncSequence: SequenceOfBytes) where Element == SequenceOfBytes.Element, SequenceOfBytes : Sendable, SequenceOfBytes : AsyncSequence
func makeAsyncIterator() -> AsyncIterator
typealias AsyncIteratorNextCallback = () async throws -> Element?
protocol AsyncIteratorProtocol<Element, Failure>
A type that asynchronously supplies the values of a sequence one at a time.
mutating func next() async throws -> Element?
mutating func next(isolation actor: isolated (any Actor)?) async throws(Self.Failure) -> Self.Element?
Default implementation of next()
in terms of next()
, which is required to maintain backward compatibility with existing async iterators.