Skip to content

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

Instance Method

next(isolation:)

Advances to the next serialized chunk, inheriting the caller’s actor isolation.
mutating func next(isolation actor: isolated (any Actor)? = #isolation) async throws -> OutboundBody?

Parameters

actor

The actor to remain isolated to.

Return Value

The next chunk of serialized multipart data, or nil once the sections run out.

Discussion

Throws

Any error thrown by the backing sequence of sections.