Instance Methodswift-nio 2.86.1NIOCore
shutdownGracefully
Shuts down the event loop gracefully.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
func shutdownGracefully() async throws Shuts down the event loop gracefully.
func shutdownGracefully() async throws s7NIOCore14EventLoopGroupPAAE18shutdownGracefullyyyYaKF What are these?2BPJ5import NIOCoreThe core abstractions that make up SwiftNIO.
protocol EventLoopGroup : AnyObject, _NIOPreconcurrencySendableProvides an endless stream of EventLoops to use.
var description: String { get }func _preconditionSafeToSyncShutdown(file: StaticString, line: UInt) func any() -> any EventLoop The default implementation of any() just returns the next() EventLoop but it’s highly recommended to override this and return the current EventLoop if possible.
@preconcurrency func shutdownGracefully(_ callback: @escaping ((any Error)?) -> Void) func syncShutdownGracefully() throws