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

Method add_started_callback

crates/execution/runner/src/runner.rs:137–142  ·  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

135
136 /// Registers a callback to run after the node has started.
137 pub fn add_started_callback<F>(&mut self, callback: F)
138 where
139 F: FnOnce() -> Result<()> + Send + 'static,
140 {
141 self.started_callbacks.push(Box::new(callback));
142 }
143
144 /// Applies all Base-specific wiring to the supplied builder, launches the node, and waits for
145 /// shutdown.

Callers 2

mainFunction · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected