public void SetResult(T result) { if (_source.HasTask) { _source.TrySetResult(result); } else { _source = new PooledValueTaskSource <T>(result); } }
public void SetResult() { _source.TrySetResult(); }