Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Instance Method

nextCollatedPart(isolation:)

Advances to the next section, gathering each part’s body chunks into a single section, inheriting the caller’s actor isolation.
mutating func nextCollatedPart(isolation actor: isolated (any Actor)? = #isolation) async throws(MultipartParserError) -> MultipartSection<BackingSequence.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.