1
0

CancellableTaskCompletionSource.cs 599 B

1234567891011121314151617181920212223
  1. #if CSHARP_7_OR_LATER || (UNITY_2018_3_OR_NEWER && (NET_STANDARD_2_0 || NET_4_6))
  2. #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Threading.Tasks;
  7. namespace UniRx.InternalUtil
  8. {
  9. internal interface ICancellableTaskCompletionSource
  10. {
  11. bool TrySetException(Exception exception);
  12. bool TrySetCanceled();
  13. }
  14. internal class CancellableTaskCompletionSource<T> : TaskCompletionSource<T>, ICancellableTaskCompletionSource
  15. {
  16. }
  17. }
  18. #endif