vegardit / haxe-concurrent

A haxelib for basic platform-agnostic concurrency support
https://vegardit.github.io/haxe-concurrent/
Apache License 2.0
82 stars 14 forks source link

Made the threadpool sleep configurable #26

Closed onehundredfeet closed 1 year ago

onehundredfeet commented 1 year ago

Issue #, if available: https://github.com/vegardit/haxe-concurrent/issues/25

Description of changes: Allows the users of the library to specify an overall default for all subsequently created thread pools, as well as a per-thread-pool variable that allows users to change the amount of time a worker thread will sleep before polling for more work.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

sebthom commented 1 year ago

Nice, thanks!