Skip to content

Commit

Permalink
Avoid printing warning if possible.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Dec 28, 2023
1 parent 790927f commit cec19e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/io/event/support.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ def self.fiber_scheduler_v2?

def self.fiber_scheduler_v3?
if fiber_scheduler_v2?
return true if RUBY_VERSION >= "3.3"

# Feature detection if required:
begin
IO::Buffer.new.slice(0, 0).write(STDOUT)
return true
Expand Down

0 comments on commit cec19e8

Please sign in to comment.