File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
lib/concurrent-ruby/concurrent Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ module Concurrent
8787 #
8888 # @example Controlling execution from within the block
8989 # timer_task = Concurrent::TimerTask.new(execution_interval: 1) do |task|
90- # task.execution_interval.times{ print 'Boom! ' }
90+ # task.execution_interval.to_i. times{ print 'Boom! ' }
9191 # print "\n"
9292 # task.execution_interval += 1
9393 # if task.execution_interval > 5
@@ -96,12 +96,11 @@ module Concurrent
9696 # end
9797 # end
9898 #
99- # timer_task.execute # blocking call - this task will stop itself
99+ # timer_task.execute
100100 # #=> Boom!
101101 # #=> Boom! Boom!
102102 # #=> Boom! Boom! Boom!
103103 # #=> Boom! Boom! Boom! Boom!
104- # #=> Boom! Boom! Boom! Boom! Boom!
105104 # #=> Stopping...
106105 #
107106 # @example Observation
You can’t perform that action at this time.
0 commit comments