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

Add Ractor RBS #755

Merged
merged 5 commits into from
Aug 19, 2021
Merged

Add Ractor RBS #755

merged 5 commits into from
Aug 19, 2021

Conversation

pocke
Copy link
Member

@pocke pocke commented Aug 19, 2021

This PR adds RBS for Ractor.

end

def test_new
# TODO: it raises an error because the proc is not isolated
Copy link
Member Author

Choose a reason for hiding this comment

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

I guess we need to make assert_send_type Ractor safe to avoid this error, and I guess it is not easy. So I skipped the test case.

end

def test_select
r1 = Ractor.new { loop { Ractor.yield 42 } }
Copy link
Member Author

Choose a reason for hiding this comment

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

This test code leaks Ractor processes in some places. The leaks don't have a large impact because this test code is short-lived code.

Copy link
Member

@soutaro soutaro left a comment

Choose a reason for hiding this comment

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

👍

@pocke pocke merged commit 6981238 into ruby:master Aug 19, 2021
@pocke pocke deleted the Write_Ractor_RBS branch August 19, 2021 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants