Contents

withTaskCancellationHandler(handler:operation:)

Declaration

func withTaskCancellationHandler<T>(handler: @Sendable () -> Void, operation: () async throws -> T) async rethrows -> T

See Also

Canceling Tasks