Instance Method
next(isolation:)
Advances to the next section of the message, inheriting the caller’s actor isolation.
mutating func next(isolation actor: isolated (any Actor)? = #isolation) async throws(MultipartParserError) -> StreamingMultipartParserAsyncSequence<BackingSequence>.AsyncIterator.Element?
Return Value
The next section, or nil once the message is complete.
Discussion
Throws
MultipartParserError if the message is malformed, if it ends part-way through a part, or if the backing sequence itself throws.