ReactiveUI.Primitives.Extensions.Operators.FirstMatchFromCandidatesObservable<TKey, TRaw, TResult>
Walks a list of candidate keys sequentially, projects each into a one-shot
IObservable<T>, transforms the raw value into
TResult, and emits the first transformed value that
satisfies a predicate. Errors from individual projections are swallowed (the
candidate is skipped and the next one is tried). If no candidate matches,
completes with a single emission of fallback.
Lightweight observer used by the synchronous fast-path to capture the result
of a one-shot projection. Cheaper than AsyncSink because it
carries no downstream observer, candidate list, or delegate references.
public FirstMatchFromCandidatesObservable(IReadOnlyList<TKey> candidates, Func<TKey, IObservable<TRaw>> project, Func<TRaw, TResult> transform, Func<TResult, bool> predicate, TResult fallback)
Walks a list of candidate keys sequentially, projects each into a one-shot
IObservable<T>, transforms the raw value into
TResult, and emits the first transformed value that
satisfies a predicate. Errors from individual projections are swallowed (the
candidate is skipped and the next one is tried). If no candidate matches,
completes with a single emission of fallback.