Crates.io | corona |
lib.rs | corona |
version | 0.4.3 |
source | src |
created_at | 2017-06-17 14:29:46.933928 |
updated_at | 2020-03-07 19:49:32.074501 |
description | Coroutine and Async/Await support for tokio-based futures |
homepage | |
repository | https://github.com/vorner/corona |
max_upload_size | |
id | 19326 |
size | 163,926 |
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.
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.
Licensed under either of
at your option.
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.