<PackageReference Include="ReactiveUI.Primitives.Core" Version="8.1.0" />
ReactiveUI.Primitives.Advanced.UnfoldSignal<TState, TResult>
Signal that walks a state machine synchronously, emitting one projected value per iteration.
namespace ReactiveUI.
Primitives.
Advanced
{
public sealed class UnfoldSignal<[
System.
Runtime.
CompilerServices.
Nullable(
2)]
TState, [
System.
Runtime.
CompilerServices.
Nullable(
2)]
TResult> :
IRequireCurrentThread<
TResult>,
IObservable<
TResult>,
IInlineSignal<
TResult>
{
public UnfoldSignal(
TState initialState,
Func<
TState,
bool>
condition,
Func<
TState,
TState>
iterate,
Func<
TState,
TResult>
resultSelector);
public bool IsRequiredSubscribeOnCurrentThread();
public IDisposable Subscribe(
IObserver<
TResult>
observer);
public IDisposable Subscribe(
Action<
TResult>
onNext,
Action<
Exception>
onError,
Action onCompleted);
}
}