ISchedulerAsyncObserver.cs 447 B

123456789101112131415
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT License.
  3. // See the LICENSE file in the project root for more information.
  4. using System.Threading.Tasks;
  5. namespace System.Reactive
  6. {
  7. internal interface IScheduledAsyncObserver<T> : IAsyncObserver<T>, IAsyncDisposable
  8. {
  9. ValueTask EnsureActive();
  10. ValueTask EnsureActive(int count);
  11. }
  12. }