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

Method with_tokio_runtime

crates/execution/node/src/node.rs:773–776  ·  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

771 ///
772 /// Caution: This runtime must not be created from within asynchronous context.
773 pub fn with_tokio_runtime(mut self, tokio_runtime: Option<tokio::runtime::Handle>) -> Self {
774 self.tokio_runtime = tokio_runtime;
775 self
776 }
777
778 /// Configure the RPC middleware to use
779 pub fn with_rpc_middleware<T>(self, rpc_middleware: T) -> BaseAddOnsBuilder<NetworkT, T> {

Callers 1

buildMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected