pub async fn cancel(&self, obj: T) -> Result<(), SendError<T>> {
        self.tx
            .send(Op::Cancel(obj))
            .await
            .map_err(|SendError(op)| match op {
                Op::Cancel(obj) => SendError(obj),
                _ => unreachable!(),
            })
    }
/// Cancels pending updates for the given object.
Cancels pending updates for the given object.
Cancels pending updates for the given object .
pub async fn cancel(&self, obj: T) -> Result<(), SendError<T>> {
        self.tx
            .send(Op::Cancel(obj))
            .await
            .map_err(|SendError(op)| match op {
                Op::Cancel(obj) => SendError(obj),
                _ => unreachable!(),
            })
    }
pub async fn cancel ( & self , obj : T ) -> Result < ( ) , SendError < T > > { self . tx . send ( Op :: Cancel ( obj ) ) . await . map_err ( | SendError ( op ) | match op { Op :: Cancel ( obj ) => SendError ( obj ) , _ => unreachable ! ( ) , } ) }
Cancels pending updates for the given object.
Cancels pending updates for the given object .
&self
obj
T
&self
obj
T