/unico

UNIfied COroutines in rust

Primary LanguageAssemblyApache License 2.0Apache-2.0

UNIfied COroutines

UNICO is a library that integrates the built-in stackless coroutines (a.k.a. generators and futures) in Rust with powerful stackful coroutines.

Features

  • Straightforward and easy-to-use structures of symmetric and asymmetric stackful coroutines.
  • Generalized implementation of context switching methods and stack allocators, and users can implement their own.
  • Capability of polling futures synchronously inside stackful coroutines, and turning stackful coroutines into generators or futures.

Reference

This library is partially inspired by nbdd0121/stackful.

License

MIT or APACHE-2.0