mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-07-25 16:03:48 +00:00
14 lines
392 B
Ruby
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
|