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

API Browser

Method

GetResult

func GetResult() -> T

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

Reads the completed value without waiting.

Return value

T

The value supplied by the producer.

Remarks

A pending or cancelled task produces a runtime fault. Application code should normally use await or inspect Outcome.