AaronC81 / backtor

Thread-based backport of Ruby 3's Ractor concurrency model
MIT License
1 stars 0 forks source link

Backports #1

Open marcandre opened 3 years ago

marcandre commented 3 years ago

Hi!

You and I had the same idea, to backport the new Ractor 😄

FYI I backport all features of Ruby that are backportable in my backports gem, this will be one of them.

I'm pretty much done, and I pass the Ruby tests (those that I can). I intend to make a release on Xmas day only, but I invite you to check it out in the meantime by using the ractor branch:

# in your Gemfile
gem 'backports', git: 'https://github.com/marcandre/backports.git', branch: 'ractor', require: false

# in your code:
require 'backports/3.0.0/ractor'

Bug reports / PRs / code reviews welcome!

AaronC81 commented 3 years ago

Ah, thanks for the heads-up! I'll check it out later on :)

marcandre commented 3 years ago

Update: latest release of backports has a complete backport of Ractor, including receive_if and all.