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

Method add

templates/basic-cpp/src/module_bindings/add_reducer.rs:34–36  ·  view source on GitHub ↗

Request that the remote module invoke the reducer `add` to run as soon as possible. This method returns immediately, and errors only if we are unable to send the request. The reducer will run asynchronously in the future, and this method provides no way to listen for its completion status. /// Use [`add:add_then`] to run a callback after the reducer completes.

(&self, name: String)

Source from the content-addressed store, hash-verified

32 /// and this method provides no way to listen for its completion status.
33 /// /// Use [`add:add_then`] to run a callback after the reducer completes.
34 fn add(&self, name: String) -> __sdk::Result<()> {
35 self.add_then(name, |_, _| {})
36 }
37
38 /// Request that the remote module invoke the reducer `add` to run as soon as possible,
39 /// registering `callback` to run when we are notified that the reducer completed.

Callers

nothing calls this directly

Implementers 1

add_reducer.rstemplates/basic-cpp/src/module_binding

Calls 1

add_thenMethod · 0.45

Tested by

no test coverage detected