Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sunsided/little-tokio-futures-runtime
- Owner: sunsided
- Created: 2024-07-10T13:42:50.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-10T13:48:00.000Z (6 months ago)
- Last Synced: 2024-11-09T08:08:17.280Z (2 months ago)
- Topics: async, async-runtime, futures, rust
- Language: Rust
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.