fn take_until<U>(self, trigger: U) -> TakeUntil<Self, U>
        where Self: Sized,
              U: Stream
    {
        TakeUntil::new(self, trigger)
    }
/// Take items until the trigger emit a value.
///
/// # Examples
///
/// ```
/// use asyncplify::*;
///
/// let vec = (0..10)
///     .into_stream()
///     .take_until(once(()))
///     .into_vec();
///
/// assert!(vec == [], "vec = {:?}", vec);
/// ```
/// ## An example that emit all values
/// ```
/// use asyncplify::*;
///
/// let vec = (0..4)
///     .into_stream()
///     .take_until(Empty)
///     .into_vec();
///
/// assert!(vec == [0, 1, 2, 3], "vec = {:?}", vec);
/// ```
Take items until the trigger emit a value.
Take items until the trigger emit a value .
fn take_until<U>(self, trigger: U) -> TakeUntil<Self, U>
        where Self: Sized,
              U: Stream
    {
        TakeUntil::new(self, trigger)
    }
fn take_until < U > ( self , trigger : U ) -> TakeUntil < Self , U > where Self : Sized , U : Stream { TakeUntil :: new ( self , trigger ) }
Take items until the trigger emit a value.
Take items until the trigger emit a value .
self
trigger
U
self
trigger
U
examples
```
use asyncplify::*.




` ` ` use asyncplify :: * .
an example that emit all values
```
use asyncplify::*.




` ` ` use asyncplify :: * .