Cancellator
Cancellator.swift:22final class Cancellator
final class Cancellator
import Basics
protocol Cancellable
protocol Sendable
init(observabilityScope: ObservabilityScope?)
func cancel(deadline: DispatchTime) throws
func deregister(_ key: RegistrationKey)
func installSignalHandlers()
Installs signal handlers to terminate sub-processes on cancellation.
func register(_ process: Foundation.Process) -> RegistrationKey?
func register(_ process: AsyncProcess) -> RegistrationKey?
@discardableResult func register(name: String, handler: Cancellable) -> RegistrationKey?
@discardableResult func register(name: String, handler: @escaping CancellationHandler) -> RegistrationKey?
@discardableResult func register(name: String, handler: @escaping () throws -> Void) -> RegistrationKey?
typealias RegistrationKey = String