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

Function sleep

flow-rs/src/loader/python/utils.rs:32–36  ·  view source on GitHub ↗
(py: Python, dur: u64)

Source from the content-addressed store, hash-verified

30
31#[pyfunction]
32fn sleep(py: Python, dur: u64) {
33 with_context(py, || {
34 wait(crate::rt::task::sleep(Duration::from_millis(dur)))
35 })
36}
37
38#[pyfunction]
39fn join(py: Python, tasks: Vec<PyObject>) -> Vec<PyObject> {

Callers 4

execMethod · 0.85
remove_historyFunction · 0.85
batch_recv_anyMethod · 0.85
dmonMethod · 0.85

Calls 1

with_contextFunction · 0.85

Tested by

no test coverage detected