TaskCompletionSource<TResult>.TrySetResult method

Attempts to transition the underlying task into the RanToCompletion state.

public virtual bool TrySetResult(TResult result)
parameter description
result The result value to bind to this task.

Return Value

True if the operation was successful; otherwise, false.

See Also