executeThenClose(_:)

Provides scoped access to the inbound side of the underlying Channel.

AsyncChannel.swift:335
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.