Skip to content

ScheduledTask<TResult>.TryGetResult(TResult)

TryGetResult(TResult)

View source
public bool TryGetResult(out TResult value)
Gets the result, when this handle has observed that the task completed successfully.

Parameters

valueTResult
The successful result, or default.

Returns

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.