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

ruby-concurrency / concurrent-ruby / #2872

08 Jun 2014 06:00PM UTC coverage: 77.573% (-11.7%) from 89.319%
#2872

push

jdantonio
Updated badges with new repo location.

2186 of 2818 relevant lines covered (77.57%)

527.3 hits per line

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

85.71
/lib/concurrent/executor/per_thread_executor.rb
1
module Concurrent
1✔
2

3
  class PerThreadExecutor
1✔
4
    include Executor
1✔
5

6
    def self.post(*args)
1✔
7
      raise ArgumentError.new('no block given') unless block_given?
1,365✔
8
      Thread.new(*args) do
1,365✔
9
        Thread.current.abort_on_exception = false
1,331✔
10
        yield(*args)
1,331✔
11
      end
12
      return true
1,365✔
13
    end
14

15
    def post(*args, &task)
1✔
16
      return PerThreadExecutor.post(*args, &task)
1,365✔
17
    end
18

19
    def <<(task)
1✔
20
      PerThreadExecutor.post(&task)
×
21
      return self
×
22
    end
23
  end
24
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