Files
gitlab-foss/config/initializers/require_async_gem.rb
2024-07-23 00:26:35 +00:00

14 lines
392 B
Ruby

# frozen_string_literal: true
if RUBY_VERSION >= "3.3"
# No more such warnings in Ruby 3.3+
require 'async'
else
# Silences this warning while requiring async gem:
# `warning: IO::Buffer is experimental and both the Ruby and C interface may change in the future!`
# See also https://github.com/socketry/io-event/issues/82
Kernel.silence_warnings do
require 'async'
end
end