File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ def initialize
7272 end
7373
7474 if defined? ( Ractor . store_if_absent ) &&
75- defined? ( Ractor . shareble ?) && Ractor . shareable? ( GET_TIME )
75+ defined? ( Ractor . shareable ?) && Ractor . shareable? ( GET_TIME )
7676
7777 # Ractor support if
7878 # 1. Ractor.store_if_absent is available
@@ -85,8 +85,6 @@ def initialize
8585 def self . instance
8686 Ractor [ :timeout_gem_state ]
8787 end
88-
89- ::Timeout ::RACTOR_SUPPORT = true # for test
9088 else
9189 GLOBAL_STATE = State . new
9290
Original file line number Diff line number Diff line change @@ -299,5 +299,5 @@ def test_ractor
299299
300300 assert_equal :ok, r
301301 end;
302- end if Timeout . const_defined ?( :RACTOR_SUPPORT )
302+ end if defined ?( :: Ractor ) && RUBY_VERSION >= '4.0'
303303end
You can’t perform that action at this time.
0 commit comments