fn debounce<SC>(self, delay: Duration, scheduler: SC) -> Debounce<Self, SC>
        where SC: Scheduler,
              Self: Sized + 'static
    {
        Debounce::new(self, delay, scheduler)
    }
/// Only emit an item from a [Stream](./trait.Stream.html) if a particular
/// duration has passed without it emitting another item.
///
/// # Examples
///
/// ```
/// use asyncplify::*;
/// use asyncplify::schedulers::*;
/// use std::time::Duration;
///
/// let scheduler = CurrentThread::current();
/// let mut vec = Vec::new();
///
/// (0..10)
///     .into_stream()
///     .debounce(Duration::from_millis(10), scheduler)
///     .subscribe_action(|v| vec.push(v));
///
/// assert!(vec == [9], "vec = {:?}", vec);
/// ```
Only emit an item from a [Stream](./trait.Stream.html) if a particular
duration has passed without it emitting another item.
Only emit an item from a [ Stream ] ( . / trait . Stream . html ) if a particular duration has passed without it emitting another item .
fn debounce<SC>(self, delay: Duration, scheduler: SC) -> Debounce<Self, SC>
        where SC: Scheduler,
              Self: Sized + 'static
    {
        Debounce::new(self, delay, scheduler)
    }
fn debounce < SC > ( self , delay : Duration , scheduler : SC ) -> Debounce < Self , SC > where SC : Scheduler , Self : Sized + ' static { Debounce :: new ( self , delay , scheduler ) }
Only emit an item from a [Stream](./trait.Stream.html) if a particular
duration has passed without it emitting another item.
Only emit an item from a [ Stream ] ( . / trait . Stream . html ) if a particular duration has passed without it emitting another item .
self
delay
Duration
scheduler
SC
self
delay
Duration
scheduler
SC
examples


let scheduler = CurrentThread::current();
let mut vec = Vec::new().

(0..10)
.into_stream()
.debounce(Duration::from_millis(10), scheduler)
.subscribe_action(|v| vec.push(v)).


let scheduler = CurrentThread :: current () ; let mut vec = Vec :: new () . ( 0 .. 10 ) . into_stream () . debounce ( Duration :: from_millis ( 10 ) scheduler ) . subscribe_action ( |v| vec . push ( v )) .