internal void SetAsFinished() { if (!Ended.IsSet) { Ended.Set(); } }
public void CancelAfter(int millisecondsDelay) { Cancellation.CancelAfter(millisecondsDelay); Ended.Set(); }
public void Cancel(bool throwOnFirstException) { Cancellation.Cancel(throwOnFirstException); Ended.Set(); }
public void CancelAfter(TimeSpan delay) { Cancellation.CancelAfter(delay); Ended.Set(); }
public void Cancel() { Cancellation.Cancel(); Ended.Set(); }