write(_:)
Write data into the Channel.
@preconcurrency func write<T>(_ any: T) -> EventLoopFuture<Void> where T : Sendable Write data into the Channel.
@preconcurrency func write<T>(_ any: T) -> EventLoopFuture<Void> where T : Sendable s7NIOCore7ChannelPAAE5writeyAA15EventLoopFutureCyytGqd__lF What are these?743XOimport NIOCoreThe core abstractions that make up SwiftNIO.
protocol Channel : AnyObject, ChannelOutboundInvoker, _NIOPreconcurrencySendableA Channel is easiest thought of as a network socket. But it can be anything that is capable of I/O operations such as read, write, connect, and bind.
final class EventLoopFuture<Value>Holder for a result that will be provided later.
typealias Void = ()The return type of functions that don’t explicitly specify a return type, that is, an empty tuple ().
protocol SendableA thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.
@preconcurrency func write<T>(_ any: T) -> EventLoopFuture<Void> where T : Sendable Write data into the Channel, automatically wrapping with NIOAny.
var syncOptions: (any NIOSynchronousChannelOptions)? { get }Default implementation: NIOSynchronousChannelOptions are not supported.
func bind(to address: SocketAddress, promise: EventLoopPromise<Void>?) func close(mode: CloseMode = .all, promise: EventLoopPromise<Void>?) func connect(to address: SocketAddress, promise: EventLoopPromise<Void>?) func flush() func getOption<Option>(_ option: Option) async throws -> Option.Value where Option : ChannelOption Get the value of option for this Channel.
func read() func register(promise: EventLoopPromise<Void>?) func registerAlreadyConfigured0(promise: EventLoopPromise<Void>?) func setOption<Option>(_ option: Option, value: Option.Value) async throws where Option : ChannelOption Set option to value on this Channel.
@preconcurrency func triggerUserOutboundEvent(_ event: any Sendable, promise: EventLoopPromise<Void>?) func write<T>(_ data: T, promise: EventLoopPromise<Void>?) where T : Sendable @preconcurrency func writeAndFlush<T>(_ any: T) -> EventLoopFuture<Void> where T : Sendable Write and flush data into the Channel.
@preconcurrency func writeAndFlush<T>(_ data: T) async throws where T : Sendable Shortcut for calling write and flush.
func writeAndFlush<T>(_ data: T, promise: EventLoopPromise<Void>?) where T : Sendable func write(_ data: NIOAny, promise: EventLoopPromise<Void>?) func writeAndFlush(_ data: NIOAny, promise: EventLoopPromise<Void>?)