You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.5/lib/concurrent-ruby/concurrent/agent.rb
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -371,7 +371,7 @@ def await_for(timeout)
371
371
# @param [Float] timeout the maximum number of seconds to wait
372
372
# @return [Boolean] true if all actions complete before timeout
373
373
#
374
-
# @raise [Concurrent::TimeoutError] when timout is reached
374
+
# @raise [Concurrent::TimeoutError] when timeout is reached
Copy file name to clipboardExpand all lines: Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.5/lib/concurrent-ruby/concurrent/async.rb
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -218,7 +218,7 @@ module Async
218
218
219
219
# @!method self.new(*args, &block)
220
220
#
221
-
# Instanciate a new object and ensure proper initialization of the
221
+
# Instantiate a new object and ensure proper initialization of the
222
222
# synchronization mechanisms.
223
223
#
224
224
# @param [Array<Object>] args Zero or more arguments to be passed to the
Copy file name to clipboardExpand all lines: Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.5/lib/concurrent-ruby/concurrent/atom.rb
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -113,7 +113,7 @@ class Atom < Synchronization::Object
113
113
# @option opts [Proc] :validator (nil) Optional proc used to validate new
114
114
# values. It must accept one and only one argument which will be the
115
115
# intended new value. The validator will return true if the new value
116
-
# is acceptable else return false (preferrably) or raise an exception.
116
+
# is acceptable else return false (preferably) or raise an exception.
Copy file name to clipboardExpand all lines: Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.5/lib/concurrent-ruby/concurrent/concern/logging.rb
+17-12Lines changed: 17 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,3 @@
1
-
require'logger'
2
1
require'concurrent/atomic/atomic_reference'
3
2
4
3
moduleConcurrent
@@ -8,10 +7,12 @@ module Concern
8
7
#
9
8
# @!visibility private
10
9
moduleLogging
11
-
includeLogger::Severity
10
+
# The same as Logger::Severity but we copy it here to avoid a dependency on the logger gem just for these 7 constants
11
+
DEBUG,INFO,WARN,ERROR,FATAL,UNKNOWN=0,1,2,3,4,5
12
+
SEV_LABEL=%w[DEBUGINFOWARNERRORFATALANY].freeze
12
13
13
14
# Logs through {Concurrent.global_logger}, it can be overridden by setting @logger
14
-
# @param [Integer] level one of Logger::Severity constants
15
+
# @param [Integer] level one of Concurrent::Concern::Logging constants
15
16
# @param [String] progname e.g. a path of an Actor
16
17
# @param [String, nil] message when nil block is used to generate the message
0 commit comments