Instance Methodswift-nio 2.84.0NIOCore
shutdownGracefully(_:)
EventLoop.swift:1515@preconcurrency func shutdownGracefully(_ callback: @escaping ((any Error)?) -> Void)
@preconcurrency func shutdownGracefully(_ callback: @escaping ((any Error)?) -> Void)
s7NIOCore14EventLoopGroupPAAE18shutdownGracefullyyyys5Error_pSgcF
What are these?5A4Z
import NIOCore
The core abstractions that make up SwiftNIO.
protocol EventLoopGroup : AnyObject, _NIOPreconcurrencySendable
Provides an endless stream of EventLoop
s to use.
protocol Error : Sendable
A type representing an error value that can be thrown.
typealias Void = ()
The return type of functions that don’t explicitly specify a return type, that is, an empty tuple ()
.
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.
func shutdownGracefully() async throws
Shuts down the event loop gracefully.
func syncShutdownGracefully() throws