Struct burst_pool::Sender [] [src]

pub struct Sender<T> { /* fields omitted */ }

Methods

impl<T> Sender<T>
[src]

[src]

[src]

Create a new receiver handle.

[src]

Wake up all reciever threads.

This function is guaranteed to wake up all the threads. If some threads are already running, then those threads, or others, may be woken up spuriously in the future as a result.

This function does not block, but it does make a (single) syscall.

impl<T: Send> Sender<T>
[src]

[src]

Attempt to send a payload to a waiting receiver.

enqueue will only succeed if there is a receiver ready to take the value right now. If no receivers are ready, the value is returned-to-sender.

Note: enqueue will not unblock the receiver it sends the payload to. You must call wake_all after calling enqueue!

This function does not block or make any syscalls.

Trait Implementations

impl<T: Send> Send for Sender<T>
[src]

impl<T> Drop for Sender<T>
[src]

[src]

All receivers will unblock with RecvError::Orphaned.