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

Method with_tokio_runtime

crates/execution/node/src/node.rs:757–760  ·  view source on GitHub ↗

Configures a custom tokio runtime for the RPC server. Caution: This runtime must not be created from within asynchronous context.

(mut self, tokio_runtime: Option<tokio::runtime::Handle>)

Source from the content-addressed store, hash-verified

755 ///
756 /// Caution: This runtime must not be created from within asynchronous context.
757 pub fn with_tokio_runtime(mut self, tokio_runtime: Option<tokio::runtime::Handle>) -> Self {
758 self.tokio_runtime = tokio_runtime;
759 self
760 }
761
762 /// Configure the RPC middleware to use
763 pub fn with_rpc_middleware<T>(self, rpc_middleware: T) -> BaseAddOnsBuilder<NetworkT, T> {

Callers 1

buildMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected