-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(thread): Make
spawnThreadTasks
use a wait group & replace …
…task params with `TaskParams` struct (#300) * Add `TaskParams` to simplify `spawnThreadTasks` * Make `spawnThreadTasks` use a `WaitGroup` instead * Use a config struct for `spawnThreadTasks` The function now takes only two arguments: the task function, and a config struct which is parameterized on the task function type info in order to also contain the parameter tuple.
- Loading branch information
1 parent
f970d8b
commit 534e83d
Showing
2 changed files
with
101 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters