MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / unsubscribe_then

Method unsubscribe_then

templates/basic-cpp/src/module_bindings/mod.rs:358–360  ·  view source on GitHub ↗

Unsubscribe from the query controlled by this `SubscriptionHandle`, then run `on_end` when its rows are removed from the client cache.

(self, on_end: __sdk::OnEndedCallback<RemoteModule>)

Source from the content-addressed store, hash-verified

356 /// Unsubscribe from the query controlled by this `SubscriptionHandle`,
357 /// then run `on_end` when its rows are removed from the client cache.
358 fn unsubscribe_then(self, on_end: __sdk::OnEndedCallback<RemoteModule>) -> __sdk::Result<()> {
359 self.imp.unsubscribe_then(Some(on_end))
360 }
361
362 fn unsubscribe(self) -> __sdk::Result<()> {
363 self.imp.unsubscribe_then(None)

Callers 1

unsubscribeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected