Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Property

Outcome

val Outcome: Optional<TaskOutcome<T>>

Declaring type: Task<T>
Module: System.Concurrency.Tasks
Assembly: System.Runtime.dll
Source file: Tasks.rvn

Gets None while pending, or Some containing Completed(value) or Cancelled.

Property value

Optional<TaskOutcome<T>>

Remarks

Inspect the union with Raven patterns to handle cancellation explicitly. Reading this property does not wait or pump a queue.