Skip to content

ScheduledTask<TResult>.GetResult

GetResult

View source
public TResult GetResult()
Returns the result which this handle observed, or throws the recorded failure or cancellation, as awaiting the task does.

Returns

The task's successful result.

Exceptions

System.InvalidOperationException
This handle hasn't observed the task's terminal response.