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