Type Property 型プロパティ

currentPriority

The current task’s priority. 現在のタスクのもつ優先度。

Declaration 宣言

static var currentPriority: TaskPriority { get }
Available when Success is Never and Failure is Never. SuccessNeverであるそしてFailureNeverである時に利用可能です。

Discussion 解説

If you access this property outside of any task, this queries the system to determine the priority at which the current function is running. If the system can’t provide a priority, this property’s value is Priority.default.

See Also 参照

Creating a Task タスクを作成する