ruby-concurrency / concurrent-ruby

Modern concurrency tools including agents, futures, promises, thread pools, supervisors, and more. Inspired by Erlang, Clojure, Scala, Go, Java, JavaScript, and classic concurrency patterns.
https://ruby-concurrency.github.io/concurrent-ruby/
Other
5.68k stars 418 forks source link

Let `Promises.any_fulfilled_future` take an `Event` #976

Closed hanazuki closed 1 year ago

hanazuki commented 1 year ago

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

Closes: https://github.com/ruby-concurrency/concurrent-ruby/issues/963