LifecycleShutdownHandler

extension LifecycleShutdownHandler
  • Asynchronous LifecycleShutdownHandler based on an EventLoopFuture.

    Declaration

    Swift

    public static func eventLoopFuture(_ future: @escaping (State) -> EventLoopFuture<Void>) -> LifecycleShutdownHandler

    Parameters

    future

    function returning the underlying EventLoopFuture