We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c9056b commit 6742fc4Copy full SHA for 6742fc4
Sources/Lifecycle/Lifecycle.swift
@@ -148,7 +148,7 @@ extension ServiceLifecycle {
148
/// - parameters:
149
/// - signal: The signal to trap.
150
/// - handler: closure to invoke when the signal is captured.
151
- /// - returns: a `DispatchSourceSignal` for the given trap. The source must be cancled by the caller.
+ /// - returns: a `DispatchSourceSignal` for the given trap. The source must be cancelled by the caller.
152
public static func trap(signal sig: Signal, handler: @escaping (Signal) -> Void, on queue: DispatchQueue = .global()) -> DispatchSourceSignal {
153
let signalSource = DispatchSource.makeSignalSource(signal: sig.rawValue, queue: queue)
154
signal(sig.rawValue, SIG_IGN)
0 commit comments