Registry / async / mco
library0.1.48rscratesunverified

A coroutine library for Rust inspired by Go's goroutines, providing lightweight concurrency.

# Cargo.toml [dependencies] mco = "0.1.48"
INSTALL
IMPORT
SIG · MCO
M
mco
asyncrustv0.1.48
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 mco::Coroutine;

Spawns a new coroutine and waits for it to finish.

use mco::Coroutine; let co = Coroutine::new(|| { println!("Hello from coroutine!"); }); co.join().unwrap();
Debug
Known issues
gotchaCoroutines are stackful and may cause stack overflow if deeply nested without explicit stack size configuration.
fix
Use CoroutineBuilder to set a larger stack size: CoroutineBuilder::new().stack_size(1024 * 1024).spawn(|| ...).
affects: >=0.1.0
Upgrade
Version history
0.1.48latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
31 hits · last 30 days
node
30
Resources
mco — cargo add mco · libregistry