<PackageReference Include="System.Reactive" Version="6.0.1-preview.1" />

EmptyDirect<TResult>

sealed class EmptyDirect<TResult> : BasicProducer<TResult>
using System.Reactive.Disposables; using System.Runtime.CompilerServices; namespace System.Reactive.Linq.ObservableImpl { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(new byte[] { 0, 1 })] internal sealed class EmptyDirect<[System.Runtime.CompilerServices.Nullable(2)] TResult> : BasicProducer<TResult> { internal static readonly IObservable<TResult> Instance = new EmptyDirect<TResult>(); private EmptyDirect() { } protected override IDisposable Run(IObserver<TResult> observer) { observer.OnCompleted(); return Disposable.Empty; } } }