Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[work-pool] Add work-pool subproject #305

Merged
merged 1 commit into from
Jun 14, 2024
Merged

[work-pool] Add work-pool subproject #305

merged 1 commit into from
Jun 14, 2024

Conversation

mbj
Copy link
Owner

@mbj mbj commented Jun 3, 2024

  • This is an extraction from my mutant-manager project.

@mbj mbj force-pushed the add/work-pool branch 3 times, most recently from f9d7f2d to 9aa4436 Compare June 3, 2024 20:05
@mbj mbj requested review from epicallan, dkubb and snusnu June 3, 2024 20:06
@mbj mbj force-pushed the add/work-pool branch 2 times, most recently from 31482d5 to edf2e0e Compare June 3, 2024 20:19
work-pool/src/WorkPool.hs Outdated Show resolved Hide resolved
@mbj mbj force-pushed the add/work-pool branch 5 times, most recently from 8f21ea2 to c3bbefb Compare June 4, 2024 23:35
* This is an extraction from my mutant-manager project.
Comment on lines +30 to +32
, workerRun :: Natural -> Source a -> m Done
-- ^ function called when a worker is booted, argument is the worker index,
-- and a source to be drained with `runSource`
Copy link
Collaborator

@dkubb dkubb Jun 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: If nothing yet uses the index, I would probably remove it from the interface and add it when it is needed.

EDIT: It's possible the tests don't use it, but other code does. If so, then I'd suggest adding a test to exercise it.

@mbj mbj merged commit 3239364 into main Jun 14, 2024
49 checks passed
@mbj mbj deleted the add/work-pool branch June 14, 2024 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants