Trait syncbox::SyncQueue [] [src]

pub trait SyncQueue<T: Send>: Queue<T> {
    fn take(&self) -> T;
    fn put(&self, e: T);
}

Required Methods

fn take(&self) -> T

Retrieves and removes the head of this queue, waiting if necessary until an element becomes available.

fn put(&self, e: T)

Implementors