Crates.io | minicoroutine |
lib.rs | minicoroutine |
version | 0.1.3 |
source | src |
created_at | 2023-08-10 14:05:02.495126 |
updated_at | 2023-08-10 16:04:05.299229 |
description | mini coroutine library in rust |
homepage | |
repository | https://github.com/YC-Lammy/minicoro-sys |
max_upload_size | |
id | 940994 |
size | 26,181 |
a mini coroutine library, a wrapper on minicoro
This crate currently supports the following targets:
Linux | Windows | Mac | IOS | Android | Emscripten | |
---|---|---|---|---|---|---|
x86_64 | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ |
i686 | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
AArch64 | ✅ | ❌ | ✅ | ✅ | ✅ | ❌ |
ARM | ❌ | ❌ | ✅ | ✅ | ✅ | ❌ |
RISC-V | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
Wasm | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
Panics are not supported by this crate, catch unwind will not be able to catch panics invoked inside the coroutine. use the yield api to pass on any errors instead.
You can yield the current running coroutine from anywhere without having to pass pointers around, to do this just use Coroutine::running().unwrap().yield_(value).