• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jdantonio / concurrent-ruby / #714

23 May 2014 08:08PM UTC coverage: 40.697% (-56.5%) from 97.237%
#714

push

jdantonio
Merge pull request #96 from jdantonio/refactor/errors

Moved all custom errors into a single file and into the Concurrent module

17 of 18 new or added lines in 10 files covered. (94.44%)

1432 existing lines in 56 files now uncovered.

1028 of 2526 relevant lines covered (40.7%)

0.53 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

55.56
/lib/concurrent/utility/timer.rb
1
require 'concurrent/configuration'
1✔
2
require 'thread'
1✔
3

4
module Concurrent
1✔
5

6
  # Perform the given operation asynchronously after the given number of seconds.
7
  #
8
  # @param [Fixnum] seconds the interval in seconds to wait before executing the task
9
  #
10
  # @yield the task to execute
11
  #
12
  # @return [Boolean] true
13
  def timer(seconds, *args, &block)
1✔
UNCOV
14
    raise ArgumentError.new('no block given') unless block_given?
×
UNCOV
15
    raise ArgumentError.new('interval must be greater than or equal to zero') if seconds < 0
×
16

UNCOV
17
    Concurrent.configuration.global_timer_set.post(seconds, *args, &block)
×
UNCOV
18
    true
×
19
  end
20
  module_function :timer
1✔
21
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc