MCPcopy Create free account
hub / github.com/apache/paimon-rust / global_runtime

Function global_runtime

crates/integrations/datafusion/src/runtime.rs:25–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23static RUNTIME: OnceLock<Runtime> = OnceLock::new();
24
25fn global_runtime() -> &'static Runtime {
26 RUNTIME.get_or_init(|| {
27 Runtime::new()
28 .expect("failed to build global tokio runtime for paimon datafusion integration")
29 })
30}
31
32/// Returns a [`Handle`] to the global Tokio runtime.
33///

Callers 3

runtimeFunction · 0.85
await_with_runtimeFunction · 0.85
block_on_with_runtimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected