Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/crallen/rust-async-demo
Learning rust async/await with tokio
https://github.com/crallen/rust-async-demo
Last synced: 14 days ago
JSON representation
Learning rust async/await with tokio
- Host: GitHub
- URL: https://github.com/crallen/rust-async-demo
- Owner: crallen
- License: mit
- Created: 2022-05-01T11:53:51.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-02T09:42:27.000Z (over 2 years ago)
- Last Synced: 2024-11-07T03:39:53.474Z (2 months ago)
- Language: Rust
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Async Workers Demo in Rust
This little demo started as part of another project I've been working on. I
needed to run a fixed size pool of workers to generate sample data. I'm still
relatively new to Rust, so after fumbling with this for a bit I decided to pull
it out into its own project and get the workers running in isolation.The project is nothing fancy. It starts up 3 workers that sleep for a random
amount of time between 2 and 5 seconds before printing to the console. It will
continue to run until interrupted (i.e. Ctrl+C). It is designed to gracefully
shut down when the interrupt is received.