Closed Link512 closed 9 years ago
Funnily the first version of this did not drain the queue and I got a lot of mails etc. about the "wrong behavior". Since the main idea behind this repository is to provide some minimal version of a thread pool I won't merge this change. I like the idea of having features like this in forks.
Also if one really wanted this kind of behavior with this version one could give the tasks themselves some "atomic
Fair enough, glad I could contribute anyway to this.
When the pool must exit, the option of draining the task queue or not is configurable. Updated readme and example to reflect this.