public void SetResult() { _state?.TrySetResult(_token); }
public void SetResult(T result) { _state?.TrySetResult(result, _token); _result = result; }
/// <summary> /// Set the result of the operation /// </summary> public bool TrySetResult(T result) => _source != null && _source.TrySetResult(result, _token);
/// <summary> /// Set the result of the operation /// </summary> public bool TrySetResult() => _source != null && _source.TrySetResult(_token);