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

Let Promises.any_fulfilled_future take an Event #976

Merged

Conversation

hanazuki
Copy link
Contributor

This patch teaches Promises.any_fulfilled_future to treat a resolved Event as a fulfilled Future value of nil.

Closes: #963

This patch teaches `Promises.any_fulfilled_future` to treat a resolved
`Event` as a fulfilled `Future` value of `nil`.

Closes: ruby-concurrency#963
Co-authored-by: Petr Chalupa <[email protected]>
Copy link
Collaborator

@eregon eregon left a comment

Choose a reason for hiding this comment

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

Thank you!

@eregon eregon merged commit 8a84b9a into ruby-concurrency:master Dec 21, 2022
@hanazuki hanazuki deleted the Promises.any_fulfilled_future-event branch December 22, 2022 02:01
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.

Promises.any_fulfilled_future does not accept an Event
2 participants