Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sunsided/little-tokio-futures-runtime

A trivial futures/async runtime in Rust
https://github.com/sunsided/little-tokio-futures-runtime

async async-runtime futures rust

Last synced: 23 days ago
JSON representation

A trivial futures/async runtime in Rust

Awesome Lists containing this project

README

        

# Little Tokio: A trivial futures/`async` runtime in Rust

This is a toy futures executor / `async` runtime built to better understand the internals
of how futures work in Rust. The name, of course, being inspired by [tokio](https://github.com/tokio-rs/tokio).

TL;DR:

```shell
cargo run --example tasks
```

The file [`src/lib.rs`](src/lib.rs) contains the runtime and task
definitions, while [`examples/tasks.rs`](examples/tasks.rs) contains
a test application.
[`src/delay.rs`](src/delay.rs) contains an implementation for `Delay`,
a make-shift `await`able `delay` function.