MCPcopy Index your code
hub / github.com/cargo-lambda/cargo-lambda / pop

Method pop

crates/cargo-lambda-watch/src/state.rs:116–123  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

114 }
115
116 pub async fn pop(&self) -> Option<InvokeRequest> {
117 let mut rx = self.rx.lock().await;
118 let result = rx.recv().await;
119 if result.is_some() {
120 self.depth.fetch_sub(1, Ordering::Relaxed);
121 }
122 result
123 }
124
125 pub async fn push(&self, req: InvokeRequest) -> Result<(), ServerError> {
126 self.tx

Callers 5

process_next_requestFunction · 0.80
respond_to_invocationFunction · 0.80
createFunction · 0.80
global_root_legacyFunction · 0.80

Calls 4

newFunction · 0.85
readMethod · 0.80
getMethod · 0.80
insertMethod · 0.80

Tested by 1

global_root_legacyFunction · 0.64