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

Method add_then

templates/basic-cpp/src/module_bindings/add_reducer.rs:55–64  ·  view source on GitHub ↗
(
        &self,
        name: String,

        callback: impl FnOnce(&super::ReducerEventContext, Result<Result<(), String>, __sdk::InternalError>)
            + Send
            + 'static,
    )

Source from the content-addressed store, hash-verified

53
54impl add for super::RemoteReducers {
55 fn add_then(
56 &self,
57 name: String,
58
59 callback: impl FnOnce(&super::ReducerEventContext, Result<Result<(), String>, __sdk::InternalError>)
60 + Send
61 + 'static,
62 ) -> __sdk::Result<()> {
63 self.imp.invoke_reducer_with_callback(AddArgs { name }, callback)
64 }
65}

Callers 1

addMethod · 0.45

Calls 1

Tested by

no test coverage detected