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

Attempt to fix #82 #83

Closed
wants to merge 3 commits into from
Closed

Attempt to fix #82 #83

wants to merge 3 commits into from

Conversation

carstenbauer
Copy link
Member

@carstenbauer carstenbauer commented Mar 13, 2024

Closes #82

I use try/catch to make the tasks that don't get any elements from the channel return nothing gracefully. Afterwards, I filter out these results before performing the final reduction.

Disadvantages:

  • We potentially ignore MethodErrors cause by user input (f, `op).
  • results = fetch.(tasks) allocates

@carstenbauer
Copy link
Member Author

Closed in favor of #84

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Greedy tasks + not enough work = reduction over empty collection
1 participant