Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegFlow
/ yield_now
Function
yield_now
flow-rs/src/loader/python/utils.rs:27–29 ·
view source on GitHub ↗
(py: Python)
Source
from the content-addressed store, hash-verified
25
26
#[pyfunction]
27
fn yield_now(py: Python) {
28
with_context(py, || wait(crate::rt::task::yield_now()))
29
}
30
31
#[pyfunction]
32
fn sleep(py: Python, dur: u64) {
Callers
nothing calls this directly
Calls
1
with_context
Function · 0.85
Tested by
no test coverage detected