MCPcopy Create free account
hub / github.com/consensus-shipyard/ipc / unsubscribe

Method unsubscribe

fendermint/eth/api/src/client.rs:95–104  ·  view source on GitHub ↗
(&self, query: Query)

Source from the content-addressed store, hash-verified

93 }
94
95 async fn unsubscribe(&self, query: Query) -> Result<(), Error> {
96 let (tx, rx) = tokio::sync::oneshot::channel();
97
98 self.cmd_tx
99 .send(DriverCommand::Unsubscribe(query, tx))
100 .map_err(|_| Error::channel_send())?;
101
102 rx.await
103 .map_err(|e| Error::client_internal(e.to_string()))?
104 }
105
106 fn close(self) -> Result<(), Error> {
107 self.cmd_tx

Callers 2

runMethod · 0.45
run_wsFunction · 0.45

Calls 2

to_stringMethod · 0.80
sendMethod · 0.45

Tested by

no test coverage detected