Closed BestITUserEUW closed 11 months ago
Hi @BestITUserEUW and thanks for opening this issue! In v4.0.0, which will be released soon (hopefully even this week), the task is destructed as soon as it finishes executing, so this note will not be necessary.
Describe the new feature
Task cleanup in worker() is unexpectedly late. Might be helpful to add a comment to push_task that completed tasks are not cleaned up on task completion, but rather on next task received in thread or on thread function scope exit. I expected that tasks will be popped and cleaned up on completion.
Code example
An example of code that utilizes the suggested feature. Paste or write it between the two code fences.
Additional information
Include any additional information here.