Instance Methodswift-nio 2.81.0NIOCore
executeThenClose(_:)
Provides scoped access to the inbound side of the underlying Channel
.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
func executeThenClose<Result>(_ body: (_ inbound: NIOAsyncChannelInboundStream<Inbound>) async throws -> Result) async throws -> Result where Outbound == Never
Parameters
- body
A closure that gets scoped access to the inbound.