MCPcopy Create free account
hub / github.com/base/base / add_started_callback

Method add_started_callback

crates/execution/runner/src/runner.rs:145–150  ·  view source on GitHub ↗

Registers a callback to run after the node has started.

(&mut self, callback: F)

Source from the content-addressed store, hash-verified

143
144 /// Registers a callback to run after the node has started.
145 pub fn add_started_callback<F>(&mut self, callback: F)
146 where
147 F: FnOnce() -> Result<()> + Send + 'static,
148 {
149 self.started_callbacks.push(Box::new(callback));
150 }
151
152 /// Applies all Base-specific wiring to the supplied builder, launches the node, and waits for
153 /// shutdown.

Callers 3

mainFunction · 0.80

Calls 2

newFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected