Overview
Emits values emitted by the source Observable so long as each value satisfies the givenpredicate, and then completes as soon as this predicate is not satisfied.
takeWhile subscribes and begins mirroring the source Observable. Each value emitted on the source is given to the predicate function. The output Observable emits the source values until the predicate returns false.Type Signature
Parameters
A function that evaluates a value emitted by the source Observable and returns a boolean.
When set to
true the value that caused predicate to return false will also be emitted.Returns
MonoTypeOperatorFunction<T> - A function that returns an Observable that emits values from the source Observable so long as each value satisfies the condition defined by the predicate.
