From 7ad3aff48dc8309542704b2212b3c3d1df8155d0 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Thu, 24 Sep 2020 17:41:10 +0900 Subject: 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). --- bootstraptest/test_ractor.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'bootstraptest') 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 -- cgit v1.2.3