withCancellationHandler(handler:operation:)
Declaration
static func withCancellationHandler<T>(handler: @Sendable () -> Void, operation: () async throws -> T) async rethrows -> Tstatic func withCancellationHandler<T>(handler: @Sendable () -> Void, operation: () async throws -> T) async rethrows -> T