MCPcopy Create free account
hub / github.com/Sompote/TigrimOSR / queue_dequeue

Function queue_dequeue

src/server/services/protocols.rs:498–506  ·  view source on GitHub ↗
(
    from: &str,
    to: &str,
    topic: Option<&str>,
)

Source from the content-addressed store, hash-verified

496}
497
498pub 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
508pub async fn queue_peek(
509 from: &str,

Callers 1

exec_proto_queue_receiveFunction · 0.85

Calls 2

queue_keyFunction · 0.85
queuesFunction · 0.85

Tested by

no test coverage detected