Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
nice point. I think for cases that you mentioned there are two options: 1. If work that should be done is lightweight, tokio tasks or futures can be used. 2. if tasks are heavy and long running, there are some libraries that can execute tasks in threads - https://github.com/rust-threadpool/rust-threadpool , https://github.com/crossbeam-rs/crossbeam
nice point. I think for cases that you mentioned there are two options: 1. If work that should be done is lightweight, tokio tasks or futures can be used. 2. if tasks are heavy and long running, there are some libraries that can execute tasks in threads - https://github.com/rust-threadpool/rust-threadpool , https://github.com/crossbeam-rs/crossbeam
Related posts
- Hyperbridge: Fast multi-producer, multi-consumer unbounded channel in Rust
- Where can I read about how to write a safe API for unsafe code?
- multi-producer multi-consumer channels for message passing python library
- I needed to write a simple multi-threaded message processing queue in C++ today. Makes me really appreciate how easy this is to do in Rust.
- Any alternative threadpool to rayon?