diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-09-24 17:41:10 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2020-09-25 00:25:38 +0900 |
commit | 7ad3aff48dc8309542704b2212b3c3d1df8155d0 (patch) | |
tree | 2e9537a5fc1930c3000057e3b9be41cd4182b2a9 /bootstraptest | |
parent | 757e185cee44c627f9e573c926fd73843f81006b (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.rb | 1 |
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 |