Instance Property
インスタンスプロパティ
value
The result from a throwing task, after it completes.
Technology
- Swift Standard Library
Swift標準ライブラリ
Declaration
宣言
var value: Success { get async throws }
Return Value
戻り値
The task’s result.
Discussion
解説
If the task hasn’t completed, accessing this property waits for it to complete and its priority increases to that of the current task. Note that this might not be as effective as creating the task with the correct priority, depending on the executor’s scheduling details.
これはタスクを正しい優先度で作成するのと同じくらい効果的でないかもしれないことに注意してください、エグゼキュータのもつ予定の仕方の詳細に依存しています。
If the task throws an error, this property propagates that error. Tasks that respond to cancellation by throwing CancellationError
have that error propagated here upon cancellation.
See Also
参照
Accessing Results
結果にアクセスする
var value: Success
The result from a nonthrowing task, after it completes.
Available when Failure
is Never
.
Failure
がNever
である時に利用可能です。