Threads
Opened this issue · 0 comments
v1gnesh commented
Hello,
Thank you for sharing your work, I hope you get more time to write fun stuff about your stories with the smol-rs projects.
If you have time, could you show an example of how to use piper for this:
- spawn a thread for reading a file to end (the blocking I/O example in piper docs)
- spawn tasks and pass each "chunk" from the file read to the new tasks, for them to process it
In this case, is there an recommended upper limit on the task creation with easy_parallel?
Is there an internal thread pool that allows re-use of threads, rather than create one per task (of which there may be millions)?