#coroutine #future #tokio #await

deprecated corona

Coroutine and Async/Await support for tokio-based futures

11 releases

Uses old Rust 2015

0.4.3 Mar 7, 2020
0.4.2 May 11, 2019
0.4.1 Dec 15, 2018
0.4.0 Sep 9, 2018
0.2.0 Jul 23, 2017

#72 in #coroutine

Download history 12/week @ 2024-07-19 48/week @ 2024-07-26 5/week @ 2024-09-20 1/week @ 2024-09-27

65 downloads per month

Apache-2.0/MIT

98KB
1K SLoC

Corona

Deprecated

This library supports tokio 0.1, which is outdated. There's not much need for it any more since Rust supports native async/await syntax. Use some of the async libraries directly.

About the library

Travis Build Status AppVeyor Build status

When you need to get the asynchronous out of the way.

Corona is a library providing stackful coroutines for Rust. They integrate well with futures ‒ it is possible to switch between the abstractions as needed, each coroutine is also a future and a coroutine can wait for a future to complete. Furthermore, the futures don't have to be 'static.

On the other hand, there's a runtime cost to the library. The performance does not necessarily suffer (as seen in the benchmarks). But each coroutine has its own stack, which takes memory.

You want to read the docs and examine the examples.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0.8–2.3MB
~34K SLoC