fn async_send<'a>(
        &'a self,
        mut data: MutexGuard<'a, Data<T>>,
        val: T,
    ) -> SendOp<'a, T> {
        data.user.push(val);
        self.notify();
        SendOp::ok(data)
    }
// The asynchronous send is the easiest. Just push the data and notify.
The asynchronous send is the easiest. Just push the data and notify.
The asynchronous send is the easiest . Just push the data and notify .
fn async_send<'a>(
        &'a self,
        mut data: MutexGuard<'a, Data<T>>,
        val: T,
    ) -> SendOp<'a, T> {
        data.user.push(val);
        self.notify();
        SendOp::ok(data)
    }
fn async_send < ' a > ( & ' a self , mut data : MutexGuard < ' a , Data < T > > , val : T , ) -> SendOp < ' a , T > { data . user . push ( val ) ; self . notify ( ) ; SendOp :: ok ( data ) }
The asynchronous send is the easiest.
The asynchronous send is the easiest .
&'a self
data
MutexGuard<'a, Data<T>>
val
T
&'a self
data
MutexGuard<'a, Data<T>>
val
T