<PackageReference Include="ReactiveUI.Primitives.Core" Version="9.0.0" />

ReactiveUI.Primitives.Advanced.RangeSignal

public sealed class RangeSignal : IRequireCurrentThread<int>, IObservable<int>, IInlineSignal<int>
Signal that emits a contiguous run of integers, synchronously inside Subscribe.
public int Count { get; }

Gets the number of values emitted by the range.

public int Start { get; }

Gets the first value emitted by the range.

public RangeSignal(int start, int count)

Initializes a new instance of the RangeSignal class.

Indicates whether subscription has to happen on the calling thread.

public IDisposable Subscribe(IObserver<int> observer)

Emits the whole range to observer and completes it before returning.

public IDisposable Subscribe(Action<int> onNext, Action<Exception> onError, Action onCompleted)

Emits the whole range to onNext, then invokes onCompleted.