If like me you thought this was about event loop applications you might be interested in the generic Future<_> job with worker pool with crossbeam I wrote for my mail client meli. The future sends its result back using a futures::oneshot channel, and the job queue informs the main loop that a job is finished using a crossbeam::channel.
Clickbaity title: the article is actually a set of recommendations for existing thread pool libraries like rayon.
If like me you thought this was about event loop applications you might be interested in the generic
Future<_>
job with worker pool withcrossbeam
I wrote for my mail client meli. The future sends its result back using afutures::oneshot
channel, and the job queue informs the main loop that a job is finished using acrossbeam::channel
.