Structureswift-protobuf 1.28.1SwiftProtobuf
AsyncIterator
An asynchronous iterator that produces the messages of this asynchronous sequence.
AsyncMessageSequence.swift:86- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
struct AsyncIterator
Other members in extension
Typealiases
typealias Element
The message type in this asynchronous sequence.
Type members
init(base: Base, extensions: (any ExtensionMap)?, partial: Bool, options: BinaryDecodingOptions
) Reads size-delimited messages from the given sequence of bytes. Delimited format allows a single file or stream to contain multiple messages. A delimited message is a varint encoding the message size followed by a message of exactly that size.
Instance members
func makeAsyncIterator(
) -> AsyncMessageSequence.AsyncIterator Creates the asynchronous iterator that produces elements of this asynchronous sequence.
Citizens in SwiftProtobuf
Conformances
protocol AsyncIteratorProtocol
A type that asynchronously supplies the values of a sequence one at a time.
Instance members
func next(
) async throws -> M? Asynchronously advances to the next message and returns it, or ends the sequence if there is no next message.