shutdownGracefully(queue:_:)

    Shut this MultiThreadedEventLoopGroup down which causes the EventLoops and their associated threads to be shut down and release their resources.

    MultiThreadedEventLoopGroup.swift:345
    @preconcurrency func shutdownGracefully(queue: DispatchQueue, _ handler: @escaping (Error?) -> Void)

    Parameters

    queue

    The DispatchQueue to run handler on when the shutdown operation completes.

    handler

    The handler which is called after the shutdown operation completes. The parameter will be nil on success and contain the Error otherwise.

    Even though calling shutdownGracefully more than once should be avoided, it is safe to do so and execution of the handler is guaranteed.

    Other members in extension

    Type members

    Show implementation details (1)

    Hide implementation details

    Instance members

    Show implementation details (1)

    Hide implementation details