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

ReactiveUI.Primitives.Advanced.RepeatSignal<T>

public sealed class RepeatSignal<T> : IRequireCurrentThread<T>, IObservable<T>, IInlineSignal<T>
Signal that emits one value a fixed number of times, synchronously inside Subscribe.
public RepeatSignal(T value, int count)

Signal that emits one value a fixed number of times, synchronously inside Subscribe.

Indicates whether subscription has to happen on the calling thread.

public IDisposable Subscribe(IObserver<T> observer)

Emits the value the configured number of times to observer, then completes it.

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

Invokes onNext with the value the configured number of times, then onCompleted.