Overview 概要
This error is also thrown automatically by Task
, if the current task has been canceled.
Availability
Technology
struct CancellationError
This error is also thrown automatically by Task
, if the current task has been canceled.
func cancel()
var isCancelled : Bool
static var isCancelled : Bool
Success
is Never
and Failure
is Never
.
Success
がNever
であるそしてFailure
がNever
である時に利用可能です。
static func checkCancellation ()
Success
is Never
and Failure
is Never
.
Success
がNever
であるそしてFailure
がNever
である時に利用可能です。
func withTaskCancellationHandler <T>(operation: () -> T, onCancel : @Sendable () -> Void) -> T
func withTaskCancellationHandler <T>(handler: @Sendable () -> Void, operation: () -> T) -> T