Registry / async / may
library0.3.51rscratesunverified

Rust stackful coroutine library for asynchronous programming.

# Cargo.toml [dependencies] may = "0.3.51"
INSTALL
IMPORT
SIG · MAY
M
may
asyncrustv0.3.51
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Coroutine
use may::coroutine::Coroutine;

Spawn a coroutine and wait for it to finish.

use may::coroutine::Coroutine; fn main() { let c = Coroutine::new(|| { println!("Hello from coroutine!"); }); c.join().unwrap(); }
Debug
Known issues
gotchaMay uses stackful coroutines which may have higher memory overhead compared to async/await.
fix
Consider using async/await for lightweight tasks; May is better for CPU-bound or I/O-bound coroutines.
affects: >=0.1.0
Upgrade
Version history
0.3.51latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
may — cargo add may · libregistry