Instance Method (Default implementation)swift-nio 2.72.0NIOCore
_preconditionSafeToSyncShutdown(file:line:)
EventLoop.swift:1207func _preconditionSafeToSyncShutdown(file: StaticString, line: UInt)
Implements
Show implementation details (1)
Hide implementation details
func _preconditionSafeToSyncShutdown(file: StaticString, line: UInt
) Must crash if it’s not safe to call
syncShutdownGracefully
in the current context.
Other members in extension
Instance members
var description: String
func any(
) -> EventLoop The default implementation of
any()
just returns thenext()
EventLoop but it’s highly recommended to override this and return the currentEventLoop
if possible.func shutdownGracefully(
) async throws Shuts down the event loop gracefully.
func shutdownGracefully(@escaping (Error?) -> Void
) func syncShutdownGracefully(
) throws