I would like to suggest a new feature.
The observable.takeUntil function provides the following two types.
- takeUntil(ObservableSource<U> other)
- takeUntil(Predicate<? super T> stopPredicate)
TakeUntil, which combines the two sources, the first function. This controls until the first item is emitted as shown below.

The point at which takeUntil controls is when the first item is emit, not when onComplete is called.
here I thought.
'If it detects when the first item is emit, is it possible to support Single or Completable...etc as well as Observable?'
If this suggestion does not depart from the intent of takeUntil of reactiveX,
I want to make a Pull Request that adds the following function.
- takeUntil(SingleSource<U> other)
- takeUntil(MaybeSource<U> other)
- takeUntil(CompletableSource<U> other)
- takeUntil(FlowableSource<U> other)
If this goes depart from the intent, please tell me why.
Thanks!
I would like to suggest a new feature.
The
observable.takeUntilfunction provides the following two types.TakeUntil, which combines the two sources, the first function. This controls until the first item is emitted as shown below.
The point at which takeUntil controls is when the first item is emit, not when onComplete is called.
here I thought.
'If it detects when the first item is emit, is it possible to support Single or Completable...etc as well as Observable?'
If this suggestion does not depart from the intent of takeUntil of reactiveX,
I want to make a Pull Request that adds the following function.
If this goes depart from the intent, please tell me why.
Thanks!