NIOEventLoopGroupProvider

Deprecated.

EventLoop.swift:1561
enum NIOEventLoopGroupProvider

This type was intended to be used by libraries which use NIO, and offer their users either the option to .share an existing event loop group or create (and manage) a new one (.createNew) and let it be managed by given library and its lifecycle.

Please use a group: any EventLoopGroup parameter instead. If you want to default to a global singleton group instead, consider group: any EventLoopGroup = MultiThreadedEventLoopGroup.singleton` or similar.

Cases

Show obsolete interfaces (1)

Hide obsolete interfaces

  • case createNew

    Deprecated. Create a new EventLoopGroup when necessary. The library which accepts this provider takes ownership of the created event loop group, and must ensure its proper shutdown when the library is being shut down.

Citizens in NIOCore

Conformances

  • protocol Sendable

    A 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.