shared(_:)

EventLoopGroup will be provided by the user. Owner of this group is responsible for its lifecycle.

HTTPClient.swift:1020
case shared(any 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 own EventLoopGroup 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 singleton EventLoopGroups that we can use. HTTPClient is no longer able to create & own its own EventLoopGroup which solves a whole host of issues around shutdown.