summaryrefslogtreecommitdiff
path: root/bootstraptest
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-09-24 17:41:10 +0900
committerKoichi Sasada <ko1@atdot.net>2020-09-25 00:25:38 +0900
commit7ad3aff48dc8309542704b2212b3c3d1df8155d0 (patch)
tree2e9537a5fc1930c3000057e3b9be41cd4182b2a9 /bootstraptest
parent757e185cee44c627f9e573c926fd73843f81006b (diff)
Ractor#close_outgoping cancel Ractor.yield
Ractor#close_outgoing should cancel waiting Ractor.yield. However, yield a value by the Ractor's block should not cancel (to recognize terminating Ractor, introduce rb_ractor_t::yield_atexit flag).
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3572
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_ractor.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/bootstraptest/test_ractor.rb b/bootstraptest/test_ractor.rb
index 86325f06f9..b6f00de515 100644
--- a/bootstraptest/test_ractor.rb
+++ b/bootstraptest/test_ractor.rb
@@ -257,6 +257,7 @@ assert_equal 'ok', %q{
Ractor.recv
end
+ sleep 0.01 # wait for Ractor.yield in r
r.close_outgoing
begin
r.take