- Official ReactiveX documentation: AndThenWhen
Creates a pattern that matches when both observable sequences have an available value.
Parameters: right (Observable) – Observable sequence to match with the current sequence. Returns: Pattern object that matches when both observable sequences have an available value.
Matches when the observable sequence has an available value and projects the value.
Parameters: selector (types.FunctionType) – Selector that will be invoked for values in the source sequence. Returns: Plan that produces the projected values, to be fed (with other plans) to the when operator. Return type: Plan
Joins together the results from several patterns.
- cls (Observable) – Observable class.
- args (list[Plan]) – A series of plans (specified as a list of as a series of arguments) created by use of the Then operator on patterns.
Observable sequence with the results form matching several patterns.