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

jdantonio / concurrent-ruby / #690

20 May 2014 10:46AM UTC coverage: 92.28% (-5.1%) from 97.353%
#690

push

jdantonio
Merge pull request #87 from jdantonio/removed-actor-context-spike

Removed ActorContext spike.

2 of 2 new or added lines in 1 file covered. (100.0%)

128 existing lines in 11 files now uncovered.

2283 of 2474 relevant lines covered (92.28%)

618.76 hits per line

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

66.67
/lib/concurrent/executor/single_thread_executor.rb
1
require 'concurrent/executor/ruby_single_thread_executor'
1✔
2

3
module Concurrent
1✔
4

5
  if RUBY_PLATFORM == 'java'
1✔
6

UNCOV
7
    require 'concurrent/executor/java_single_thread_executor'
×
8

9
    # @!macro [attach] single_thread_executor
10
    #
11
    #   A thread pool with a set number of threads. The number of threads in the pool
12
    #   is set on construction and remains constant. When all threads are busy new
13
    #   tasks `#post` to the thread pool are enqueued until a thread becomes available.
14
    #   Should a thread crash for any reason the thread will immediately be removed
15
    #   from the pool and replaced.
16
    #
17
    #   The API and behavior of this class are based on Java's `SingleThreadExecutor`
18
    #
19
    #   @note When running on the JVM (JRuby) this class will inherit from `JavaSingleThreadExecutor`.
20
    #     On all other platforms it will inherit from `RubySingleThreadExecutor`.
21
    #
22
    #   @see Concurrent::RubySingleThreadExecutor
23
    #   @see Concurrent::JavaSingleThreadExecutor
24
    #
25
    #   @see http://docs.oracle.com/javase/tutorial/essential/concurrency/pools.html
26
    #   @see http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Executors.html
27
    #   @see http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutorService.html
UNCOV
28
    class SingleThreadExecutor < JavaSingleThreadExecutor
×
29
    end
30
  else
31
    # @!macro single_thread_executor
32
    class SingleThreadExecutor < RubySingleThreadExecutor
1✔
33
    end
34
  end
35
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