While do¶
See also
- Official ReactiveX documentation: WhileDo
-
classmethod
Observable.
while_do
(condition, source)¶ Repeats source as long as condition holds emulating a while loop.
Parameters: - condition (types.FunctionType) – The condition which determines if the source will be repeated.
- source (Observable) – The observable sequence that will be run if the condition function returns True.
Returns: - An observable sequence which is repeated as long as the
condition holds.
Return type: (Observable)