Instance Method
next(isolation:)
iOS 18.0+
macOS 15.0+
tvOS 18.0+
visionOS 2.0+
watchOS 11.0+
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
actorThe 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.