We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6762e6 commit 3d78334Copy full SHA for 3d78334
src/main/ruby/truffleruby/core/truffle/queue_operations.rb
@@ -11,7 +11,7 @@
11
module Truffle
12
module QueueOperations
13
def self.validate_and_prepare_timeout_in_milliseconds(non_block, timeout_seconds_or_nil)
14
- return timeout_seconds_or_nil if Primitive.nil?(timeout_seconds_or_nil)
+ return nil if Primitive.nil?(timeout_seconds_or_nil)
15
raise ArgumentError, "can't set a timeout if non_block is enabled" if non_block
16
17
(Truffle::Type.rb_num2dbl(timeout_seconds_or_nil) * 1000).to_i
0 commit comments