init(priority: TaskPriority?, operation: @Sendable () -> Success)
Runs the given nonthrowing operation asynchronously as part of a new top-level task on behalf of the current actor.
Available when
Failure
is Never
.
Failure
がNever
である時に利用可能です。
init(priority: TaskPriority?, operation: @Sendable () -> Success)
Runs the given throwing operation asynchronously as part of a new top-level task on behalf of the current actor.
Available when
Failure
is Error
.
Failure
がError
である時に利用可能です。
static func detached(priority: TaskPriority?, operation: @Sendable () -> Success) -> Task<Success, Failure>
Runs the given throwing operation asynchronously as part of a new top-level task.
Available when
Failure
is Error
.
Failure
がError
である時に利用可能です。
static var currentPriority : TaskPriority
The current task’s priority.
現在のタスクのもつ優先度。
Available when
Success
is Never
and Failure
is Never
.
Success
がNever
であるそしてFailure
がNever
である時に利用可能です。