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

ReactiveUI.Primitives.Advanced.CreateSignal<T, TState>

public sealed class CreateSignal<T, TState> : IRequireCurrentThread<T>, IObservable<T>
Creates a signal from a subscribe delegate that receives a caller-supplied state value.
public CreateSignal(TState state, Func<TState, IObserver<T>, IDisposable> subscribe)

Initializes a new instance of the CreateSignal<T, U> class.

public CreateSignal(TState state, Func<TState, IObserver<T>, IDisposable> subscribe, bool isRequiredSubscribeOnCurrentThread)

Initializes a new instance of the CreateSignal<T, U> class.

Reports whether subscription must be dispatched through the current-thread sequencer.

public IDisposable Subscribe(IObserver<T> observer)

Invokes the subscribe delegate with the state and a wrapper around the observer.