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

Support kwargs in initializer when mixing in Concurrent::Async #927

Closed mlarraz closed 2 years ago

mlarraz commented 2 years ago

Classes with keyword arguments in their initializers cannot be initialized today if they include Concurrent::Async, as of Ruby 3.0.

jdantonio commented 2 years ago

@mlarraz Can you please revisit this and add the necessary guards to allow this to build on all supported Ruby versions? Thank you!