Struct MySender
riker::futures_util
pub struct MySender<F, T> { pub fut: F, pub tx: Option<Sender<T>>, }
fut: F
tx: Option<Sender<T>>
impl<F: Future> Future for MySender<F, Result<F::Item, F::Error>>
type Item = ()
A successful value
type Error = Never
An error
fn poll(&mut self, cx: &mut Context) -> Poll<(), Never>
Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more
impl<F, T> Send for MySender<F, T> where F: Send, T: Send,
impl<F, T> Sync for MySender<F, T> where F: Sync, T: Send,