Structuresoto-core 7.4.0SotoCore
AsyncIterator
EventStream.swift:45struct AsyncIterator
struct AsyncIterator
import SotoCore
struct AWSEventStream<Event> where Event : Sendable
AsyncSequence of Event stream events
protocol Decodable
A type that can decode itself from an external representation.
protocol Sendable
init(from decoder: Decoder) throws
func makeAsyncIterator() -> AsyncIterator
typealias Element = Event
protocol AsyncIteratorProtocol<Element, Failure>
A type that asynchronously supplies the values of a sequence one at a time.
mutating func next() async throws -> Event?
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.