pub fn remove(&mut self, k: K) -> Result<Option<V>> {
        self.tx
            .send(Action::Remove(k.clone()))
            .map(|_| self.hashmap.remove(&k))
            .map_err(|_| Disconnected.into())
    }
//TODO:  It whould be good to loosen up this method signature so it matches
//hashmap's remove.  I'm not sure exactly how to do that with the enum signature
It whould be good to loosen up this method signature so it matches
hashmap's remove.  I'm not sure exactly how to do that with the enum signature
It whould be good to loosen up this method signature so it matches hashmap ' s remove . I ' m not sure exactly how to do that with the enum signature
pub fn remove(&mut self, k: K) -> Result<Option<V>> {
        self.tx
            .send(Action::Remove(k.clone()))
            .map(|_| self.hashmap.remove(&k))
            .map_err(|_| Disconnected.into())
    }
pub fn remove ( & mut self , k : K ) -> Result < Option < V > > { self . tx . send ( Action :: Remove ( k . clone ( ) ) ) . map ( | _ | self . hashmap . remove ( & k ) ) . map_err ( | _ | Disconnected . into ( ) ) }
TODO:  It whould be good to loosen up this method signature so it matches
hashmap's remove.
TODO : It whould be good to loosen up this method signature so it matches hashmap ' s remove .
&mut self
k
K