aboutsummaryrefslogtreecommitdiffstats
path: root/ractor.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ractor.rb')
-rw-r--r--ractor.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/ractor.rb b/ractor.rb
index ca09aee7be..0867f1a9d1 100644
--- a/ractor.rb
+++ b/ractor.rb
@@ -51,6 +51,10 @@ class Ractor
}
end
+ def self.make_shareable(obj)
+ obj.freeze
+ end
+
# Multiplex multiple Ractor communications.
#
# r, obj = Ractor.select(r1, r2)