Threadpool should have an API for waiting for spawned tasks #1349
Labels
A-executor
Area: futures::executor
C-feature-request
S-needs-implementation
Status: Implementation work is needed.
Milestone
If you spawn a bunch of tasks on the threadpool from the main thread, and then the main thread concludes, the program will terminate before the threadpool's tasks have finished. Ideally, there'd be an easy way to ensure that all the spawned tasks conclude before the program ends.
The text was updated successfully, but these errors were encountered: