diff options
author | Koichi Sasada <[email protected]> | 2020-11-11 16:15:04 +0900 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2020-11-11 18:11:09 +0900 |
commit | fa3670e6e48a8553ad1f37bbfbd112911da497d1 (patch) | |
tree | 4f404fb65933deb061cb4e0cee158d2c3730bced /ractor.rb | |
parent | deed21bb08170431891b65fda26f4a3557c9ffd4 (diff) |
remove Ractor#close
close_incoming by antoher ractor means there is no other messages
will be sent to the ractor, so Ractor.receive will block forever,
and it should raise and stop.
close_outgoing by antoher ractor means, ... I don't have good idea
to use it. It can be a private method.
Ractor#close calls both, but it does not make sense to call
different purpose methods, so I remove it.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3759
Diffstat (limited to 'ractor.rb')
-rw-r--r-- | ractor.rb | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -164,14 +164,6 @@ class Ractor } end - # Closes both incoming and outgoing ports. - def close - close_incoming - close_outgoing - - self - end - # utility method def self.shareable? obj __builtin_cexpr! %q{ |