Skip to main content

get_runtime

Function get_runtime 

Source
pub fn get_runtime() -> &'static Runtime
Expand description

Returns a reference to the shared Tokio runtime.

All background snapshot tasks and blocking async calls share this single runtime, ensuring that multiple filter instances do not each spin up their own executor.