_NIOPreconcurrencySendable
NIOSendable.swift:18@preconcurrency protocol _NIOPreconcurrencySendable : Sendable
Browse conforming types@preconcurrency protocol _NIOPreconcurrencySendable : Sendable
import NIOCore
The core abstractions that make up SwiftNIO.
protocol Sendable
protocol Channel : AnyObject, ChannelOutboundInvoker, _NIOPreconcurrencySendable
A 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.
protocol ChannelOption : _NIOPreconcurrencySendable, Equatable
A configuration option that can be set on a Channel
to configure different behaviour.
protocol EventLoop : EventLoopGroup
An EventLoop processes IO / tasks in an endless loop for Channel
s until it’s closed.
protocol EventLoopGroup : AnyObject, _NIOPreconcurrencySendable
Provides an endless stream of EventLoop
s to use.
protocol MulticastChannel : Channel
A MulticastChannel
is a Channel
that supports IP multicast operations: that is, a channel that can join multicast groups.
protocol NIOSerialEventLoopExecutor : EventLoop, SerialExecutor
A helper protocol that can be mixed in to a NIO EventLoop
to provide an automatic conformance to SerialExecutor
.
protocol RecvByteBufferAllocator : _NIOPreconcurrencySendable
Allocates ByteBuffer
s to be used to read bytes from a Channel
and records the number of the actual bytes that were used.
protocol SocketOptionProvider : _NIOPreconcurrencySendable
This protocol defines an object, most commonly a Channel
, that supports setting and getting socket options (via setsockopt
/getsockopt
or similar). It provides a strongly typed API that makes working with larger, less-common socket options easier than the ChannelOption
API allows.