(&self)
| 77 | } |
| 78 | |
| 79 | async fn clone_api_sender(&self) -> Sender<ApiRequest> { |
| 80 | // lock the async mutex, clone the `Sender` and then immediately |
| 81 | // drop the MutexGuard so that other tasks can clone the |
| 82 | // `Sender` as well |
| 83 | self.api_sender.lock().await.clone() |
| 84 | } |
| 85 | |
| 86 | fn clone_api_notifier(&self) -> Result<EventFd> { |
| 87 | self.api_notifier |