Moduleswift-nio
NIOEmbedded
import NIOEmbedded
import NIOEmbedded
class EmbeddedChannel
EmbeddedChannel
is a Channel
implementation that does neither any actual IO nor has a proper eventing mechanism. The prime use-case for EmbeddedChannel
is in unit tests when you want to feed the inbound events and check the outbound events manually.
class EmbeddedEventLoop
An EventLoop
that is embedded in the current running context with no external control.
class NIOAsyncTestingEventLoop
An EventLoop
that is thread safe and whose execution is fully controlled by the user.