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

ReactiveUI.Primitives.Advanced.FromEnumerableSignal<T>

Represents a finite signal backed by an enumerable sequence.

Initializes a new instance of the FromEnumerableSignal<T> class.

public FromEnumerableSignal(IEnumerable<T> values, CancellationToken cancellationToken)

Initializes a new instance of the FromEnumerableSignal<T> class.

Executes the IsRequiredSubscribeOnCurrentThread operation.

public IDisposable Subscribe(IObserver<T> observer)

Executes the Subscribe operation.

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

Executes the Subscribe operation.

public bool TryGetReadOnlyValues(out IReadOnlyList values)

Attempts to expose the backing sequence when it is already indexable and cannot be cancelled.