MCPcopy Index your code
hub / github.com/RustPython/RustPython / wait_callback_registry

Function wait_callback_registry

crates/stdlib/src/overlapped.rs:1702–1707  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1700 > = std::sync::OnceLock::new();
1701
1702 fn wait_callback_registry() -> &'static std::sync::Mutex<
1703 std::collections::HashMap<isize, alloc::sync::Arc<PostCallbackData>>,
1704 > {
1705 WAIT_CALLBACK_REGISTRY
1706 .get_or_init(|| std::sync::Mutex::new(std::collections::HashMap::new()))
1707 }
1708
1709 // Callback data for RegisterWaitWithQueue
1710 // Uses Arc to ensure the data stays alive while callback is executing

Callers 2

RegisterWaitWithQueueFunction · 0.85

Calls 2

newFunction · 0.85
get_or_initMethod · 0.45

Tested by

no test coverage detected