MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / utils_register

Function utils_register

flow-rs/src/loader/python/utils.rs:89–99  ·  view source on GitHub ↗
(module: &PyModule)

Source from the content-addressed store, hash-verified

87}
88
89pub fn utils_register(module: &PyModule) -> PyResult<()> {
90 module.add_function(wrap_pyfunction!(yield_now, module)?)?;
91 module.add_function(wrap_pyfunction!(sleep, module)?)?;
92 module.add_function(wrap_pyfunction!(join, module)?)?;
93 module.add_function(wrap_pyfunction!(create_future, module)?)?;
94 module.add_function(wrap_pyfunction!(block_on, module)?)?;
95 module.add_class::<PyFuture>()?;
96 module.add_class::<PyWaker>()?;
97
98 Ok(())
99}

Callers 2

megflowFunction · 0.85
load_from_fileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected