Пример #1
0
 public void SetResult()
 {
     _state?.TrySetResult(_token);
 }
Пример #2
0
 public void SetResult(T result)
 {
     _state?.TrySetResult(result, _token);
     _result = result;
 }
Пример #3
0
 /// <summary>
 /// Set the result of the operation
 /// </summary>
 public bool TrySetResult(T result) => _source != null && _source.TrySetResult(result, _token);
Пример #4
0
 /// <summary>
 /// Set the result of the operation
 /// </summary>
 public bool TrySetResult() => _source != null && _source.TrySetResult(_token);