Skip to content

Commit cf0997c

Browse files
committed
Tick uses synchronization layer.
1 parent 36d6ad7 commit cf0997c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/concurrent/channel/tick.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
require 'concurrent/synchronization'
12
require 'concurrent/utility/monotonic_time'
23

34
module Concurrent
@@ -13,8 +14,9 @@ class Channel
1314
# @see Concurrent.monotonic_time
1415
# @see Concurrent::Channel.ticker
1516
# @see Concurrent::Channel.timer
16-
class Tick
17+
class Tick < Synchronization::Object
1718
include Comparable
19+
safe_initialization!
1820

1921
STRING_FORMAT = '%F %T.%6N %z %Z'.freeze
2022

0 commit comments

Comments
 (0)