Wednesday 17 January 2018

Operator - And-then-when

Observable.and_(right)
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.
Observable.then_do(selector)
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
classmethodObservable.when(*args)
Joins together the results from several patterns.
Parameters:
  • 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.
Returns:
Observable sequence with the results form matching several patterns.
Return type:
Observable



-----------------------------

--------------------------















22

No comments:

Post a Comment

Calling method Sequencely

1. Execute multiple task sequencly (WAY-1) ------------------------------------------------------------------------------ import io.re...