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 func detached(priority: TaskPriority?, operation: @Sendable () -> Success) -> Task<Success, Failure>
Runs the given nonthrowing operation asynchronously as part of a new top-level task.
Available when
Failure
is Never
.
Failure
がNever
である時に利用可能です。