Instance Method (Default implementation)swift-nio 2.72.0NIOCore
getOption(_:)
Get the value of option
for this Channel
.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
func getOption<Option>(_ option: Option) async throws -> Option.Value where Option : ChannelOption
Implements
func getOption<Option>(Option
) -> EventLoopFuture<Option.Value> Get the value of
option
for thisChannel
.
Other members in extension
Instance members
var syncOptions: NIOSynchronousChannelOptions?
Default implementation:
NIOSynchronousChannelOptions
are not supported.func bind(to: SocketAddress, promise: EventLoopPromise<Void>?
) func close(mode: CloseMode, promise: EventLoopPromise<Void>?
) func connect(to: SocketAddress, promise: EventLoopPromise<Void>?
) func flush(
) func read(
) func register(promise: EventLoopPromise<Void>?
) func registerAlreadyConfigured0(promise: EventLoopPromise<Void>?
) func setOption<Option>(Option, value: Option.Value
) async throws Set
option
tovalue
on thisChannel
.func triggerUserOutboundEvent(Any, promise: EventLoopPromise<Void>?
) func write<T>(T
) -> EventLoopFuture<Void> Write data into the
Channel
, automatically wrapping withNIOAny
.func write(NIOAny, promise: EventLoopPromise<Void>?
) func write<T>(T, promise: EventLoopPromise<Void>?
) Write data into the
Channel
, automatically wrapping withNIOAny
.func writeAndFlush<T>(T
) -> EventLoopFuture<Void> Write and flush data into the
Channel
, automatically wrapping withNIOAny
.func writeAndFlush<T>(T
) async throws Shortcut for calling
write
andflush
.func writeAndFlush(NIOAny, promise: EventLoopPromise<Void>?
) func writeAndFlush<T>(T, promise: EventLoopPromise<Void>?
) Write and flush data into the
Channel
, automatically wrapping withNIOAny
.