We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 894ac23 commit 5953433Copy full SHA for 5953433
spec/concurrent/executor/timer_set_spec.rb
@@ -35,6 +35,14 @@ module Concurrent
35
expect(latch.wait(0.2)).to be_truthy
36
end
37
38
+ it 'executes a given task when given an interval in seconds, even if longer tasks have been scheduled' do
39
+ latch = CountDownLatch.new(1)
40
+ subject.post(0.5){ nil }
41
+ sleep 0.1
42
+ subject.post(0.1){ latch.count_down }
43
+ expect(latch.wait(0.2)).to be_truthy
44
+ end
45
+
46
it 'passes all arguments to the task on execution' do
47
expected = nil
48
latch = CountDownLatch.new(1)
0 commit comments