Skip to content

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

Instance Method

nextCollatedPart(isolation:)

iOS 18.0+ macOS 15.0+ tvOS 18.0+ visionOS 2.0+ watchOS 11.0+
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.