minicoroutine 0.1.3

mini coroutine library in rust
Documentation
  • Coverage
  • 5.56%
    1 out of 18 items documented0 out of 14 items with examples
  • Size
  • Source code size: 26.18 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 526.72 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • YC-Lam/minicoro-sys
    2 3 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • YC-Lammy

minicoroutine

a mini coroutine library, a wrapper on minicoro

Features

  • Stackful asymmetric coroutines.
  • Supports nesting coroutines (resuming a coroutine from another coroutine).
  • Supports no_std and no_alloc.
  • Supports custom allocators.

Supported targets

This crate currently supports the following targets:

Linux Windows Mac IOS Android Emscripten
x86_64
i686
AArch64
ARM
RISC-V
Wasm

Panic

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.

Yield from anywhere

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).