Enumeration Caseasync-http-client 1.23.0AsyncHTTPClient
shared(_:)
EventLoopGroup
will be provided by the user. Owner of this group is responsible for its lifecycle.
case shared(EventLoopGroup)
Other cases
Show obsolete interfaces (1)
Hide obsolete interfaces
case createNew
The original intention of this was that
HTTPClient
would create and own its ownEventLoopGroup
to facilitate use in programs that are not already using SwiftNIO. Since https://github.com/apple/swift-nio/pull/2471 however, SwiftNIO does provide a global, shared singletonEventLoopGroup
s that we can use.HTTPClient
is no longer able to create & own its ownEventLoopGroup
which solves a whole host of issues around shutdown.