Skip to content

Commit 5569f63

Browse files
committed
Preserve the 'return true'-ness of TimerSet#post
1 parent af591e0 commit 5569f63

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/concurrent/executor/timer_set.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,10 @@ def post(intended_time, *args, &task)
5555
@queue.push(Task.new(time, args, task))
5656
@timer_executor.post(&method(:process_tasks))
5757
end
58-
59-
true
6058
end
61-
@condition.signal
6259

60+
@condition.signal
61+
true
6362
end
6463

6564
# For a timer, #kill is like an orderly shutdown, except we need to manually

0 commit comments

Comments
 (0)