Instance Methodswift-nio 2.81.0NIOCore
syncShutdownGracefully
EventLoop.swift:1437func syncShutdownGracefully() throws
func syncShutdownGracefully() throws
s7NIOCore14EventLoopGroupPAAE22syncShutdownGracefullyyyKF
What are these?FCUG
import NIOCore
The core abstractions that make up SwiftNIO.
protocol EventLoopGroup : AnyObject, _NIOPreconcurrencySendable
Provides an endless stream of EventLoop
s to use.
var description: String { get }
func _preconditionSafeToSyncShutdown(file: StaticString, line: UInt)
func 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.
func shutdownGracefully() async throws
Shuts down the event loop gracefully.
@preconcurrency func shutdownGracefully(_ callback: @escaping (Error?) -> Void)