Skip to content

Prioritize returning Fiber.any value over cancelling quickly #806

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

adamchol
Copy link

This makes changes in Fiber.any to prioritize returning the value rather than cancelling the whole Fiber.any from the outside if we already have the value from one of it's functions. A sample code showing a specific scenario and more detailed explanation are in the issue #805.

Let me know if this is reasonable to merge.

@talex5
Copy link
Collaborator

talex5 commented Jun 13, 2025

The tests need updating too (CI is failing).

Change parent cancellation test to showcase that the value from
`Fiber.any` is first returned and then the fiber is cancelled from the
parent.
@adamchol
Copy link
Author

I changed the test from fiber.md and the description of it to showcase the priority on returning the value.

I'm not sure about the rest of the tests in the CI. One of them is new I think and I don't know how the rest is related to the code I modified. Tried to reproduce those locally but unsuccessfully because of some environment problems with docker. I might need some help with the rest of those CI tests.

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.

2 participants