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

Empty<TResult>

sealed class Empty<TResult> : Producer<TResult, _<TResult>>
using System.Reactive.Concurrency; using System.Runtime.CompilerServices; namespace System.Reactive.Linq.ObservableImpl { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(new byte[] { 0, 1, 1, 1 })] internal sealed class Empty<[System.Runtime.CompilerServices.Nullable(2)] TResult> : Producer<TResult, Empty<TResult>._> { [System.Runtime.CompilerServices.Nullable(new byte[] { 0, 1 })] internal sealed class _ : IdentitySink<TResult> { public _(IObserver<TResult> observer) : base(observer) { } public void Run(IScheduler scheduler) { SetUpstream(Scheduler.ScheduleAction<_>(scheduler, this, (Action<_>)delegate(_ target) { target.OnCompleted(); })); } } private readonly IScheduler _scheduler; public Empty(IScheduler scheduler) { _scheduler = scheduler; } [return: System.Runtime.CompilerServices.Nullable(new byte[] { 1, 0 })] protected override _ CreateSink(IObserver<TResult> observer) { return new _(observer); } protected override void Run([System.Runtime.CompilerServices.Nullable(new byte[] { 1, 0 })] _ sink) { sink.Run(_scheduler); } } }