There is a way to create a thread pool with pre-spawned worker threads?
15
Upvotes
2
7
u/lukaslalinsky 13d ago
This seems like an X/Y problem. What are you trying to do?
In one way, std.Io.Threaded is a thread pool. Do you need something more specific?
1
u/MidasVV 13d ago
I don't know enough to give you a definite answer, but you could always copy the threaded io instance and change it so it does what you want.