aboutsummaryrefslogtreecommitdiffstats
path: root/activejob
diff options
context:
space:
mode:
authorJerry D'Antonio <stumpjumper@gmail.com>2015-11-02 21:30:50 -0500
committerJerry D'Antonio <stumpjumper@gmail.com>2015-11-04 21:12:28 -0500
commit23b6f65fd130c29e5f6ea69e09f6381cf7e34e27 (patch)
tree55fd54004ac262b1d51dd1b9573a7f2b4efb8797 /activejob
parent23bb31b158fe10e5872dc80634a7ff172531c570 (diff)
downloadrails-23b6f65fd130c29e5f6ea69e09f6381cf7e34e27.tar.gz
rails-23b6f65fd130c29e5f6ea69e09f6381cf7e34e27.tar.bz2
rails-23b6f65fd130c29e5f6ea69e09f6381cf7e34e27.zip
Require only necessary concurrent-ruby classes.
Diffstat (limited to 'activejob')
-rw-r--r--activejob/lib/active_job/async_job.rb5
-rw-r--r--activejob/test/adapters/async.rb1
2 files changed, 4 insertions, 2 deletions
diff --git a/activejob/lib/active_job/async_job.rb b/activejob/lib/active_job/async_job.rb
index 6c1c070994..ed7a6e8d9b 100644
--- a/activejob/lib/active_job/async_job.rb
+++ b/activejob/lib/active_job/async_job.rb
@@ -1,4 +1,7 @@
-require 'concurrent'
+require 'concurrent/map'
+require 'concurrent/scheduled_task'
+require 'concurrent/executor/thread_pool_executor'
+require 'concurrent/utility/processor_counter'
module ActiveJob
# == Active Job Async Job
diff --git a/activejob/test/adapters/async.rb b/activejob/test/adapters/async.rb
index df58027599..5fcfb89566 100644
--- a/activejob/test/adapters/async.rb
+++ b/activejob/test/adapters/async.rb
@@ -1,4 +1,3 @@
-require 'concurrent'
require 'active_job/async_job'
ActiveJob::Base.queue_adapter = :async