MCPcopy Create free account
hub / github.com/ElementsProject/lightning / complete

Method complete

plugins/lsps-plugin/src/core/transport.rs:74–80  ·  view source on GitHub ↗
(&self, id: &str, data: Vec<u8>)

Source from the content-addressed store, hash-verified

72 }
73
74 pub async fn complete(&self, id: &str, data: Vec<u8>) -> bool {
75 if let Some(tx) = self.inner.lock().await.remove(id) {
76 tx.send(data).is_ok()
77 } else {
78 false
79 }
80 }
81
82 pub async fn remove(&self, id: &str) {
83 self.inner.lock().await.remove(id);

Calls 3

is_okMethod · 0.80
removeMethod · 0.45
sendMethod · 0.45