(
from: &str,
to: &str,
topic: Option<&str>,
)
| 496 | } |
| 497 | |
| 498 | pub async fn queue_dequeue( |
| 499 | from: &str, |
| 500 | to: &str, |
| 501 | topic: Option<&str>, |
| 502 | ) -> Option<ProtocolMessage> { |
| 503 | let key = queue_key(from, to, topic); |
| 504 | let mut qs = queues().lock().await; |
| 505 | qs.get_mut(&key)?.pop_front() |
| 506 | } |
| 507 | |
| 508 | pub async fn queue_peek( |
| 509 | from: &str, |
no test coverage detected