Instance Method (Default implementation)swift-nio 2.72.0NIOCore
register(promise:)
Channel.swift:200func register(promise: EventLoopPromise<Void>?)
Implements
func register(promise: EventLoopPromise<Void>?
) Register on an
EventLoop
and so have all its IO handled.
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 getOption<Option>(Option
) async throws -> Option.Value Get the value of
option
for thisChannel
.func read(
) 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
.