GetAwaiter
public ScheduledTaskAwaiter<TResult> GetAwaiter()Gets an awaiter which returns the successful result.
public ScheduledTaskAwaiter<TResult> GetAwaiter()public TResult GetResult()System.InvalidOperationExceptionpublic bool TryGetResult(out TResult value)valueTResultdefault.true when this handle observed a successful completion; otherwise false, for a task which failed, was canceled, or whose terminal response this handle hasn't observed. public ConfiguredScheduledTaskAwaitable<TResult> WaitAsync(CancellationToken cancellationToken = default(CancellationToken))cancellationTokenCancellationTokenpublic Task<TResult> WaitAsync(TimeSpan timeout, CancellationToken cancellationToken = default(CancellationToken))timeout elapses. timeoutTimeSpancancellationTokenCancellationTokenSystem.ArgumentOutOfRangeExceptiontimeout is negative, including System.Threading.Timeout.InfiniteTimeSpan; await the task to wait without a timeout. Outside a durable execution, timeout also exceeds the longest timer interval which System.Threading.CancellationTokenSource.CancelAfter accepts. System.TimeoutExceptionpublic Task<TResult> WaitUntilAsync(DateTimeOffset dueTime, CancellationToken cancellationToken = default(CancellationToken))dueTime passes. dueTimeDateTimeOffsetcancellationTokenCancellationTokenSystem.ArgumentOutOfRangeExceptiondueTime exceeds the longest timer interval which System.Threading.CancellationTokenSource.CancelAfter accepts. System.TimeoutException