Skip to content

Commit 41cc8a1

Browse files
authored
🔀 Merge pull request #474 from ruby/remove-ractor-make_sharable-from-0.4
⏪ Revert Ractor sharability for config types (v0.4 only)
2 parents 644a5d1 + 89ea0e8 commit 41cc8a1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/net/imap/config/attr_type_coercion.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,8 @@ def self.included(mod)
2828
end
2929
private_class_method :included
3030

31-
if defined?(Ractor.make_shareable)
32-
def self.safe(...) Ractor.make_shareable nil.instance_eval(...).freeze end
33-
else
34-
def self.safe(...) nil.instance_eval(...).freeze end
35-
end
31+
# Used in v0.5.8+ for Ractor sharability.
32+
def self.safe(...) nil.instance_eval(...).freeze end
3633
private_class_method :safe
3734

3835
Types = Hash.new do |h, type|

0 commit comments

Comments
 (0)