diff options
Diffstat (limited to 'vendor/supply_drop/lib/supply_drop/util.rb')
-rw-r--r-- | vendor/supply_drop/lib/supply_drop/util.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/vendor/supply_drop/lib/supply_drop/util.rb b/vendor/supply_drop/lib/supply_drop/util.rb deleted file mode 100644 index 5f4f9f4..0000000 --- a/vendor/supply_drop/lib/supply_drop/util.rb +++ /dev/null @@ -1,23 +0,0 @@ -module SupplyDrop - module Util - DEFAULT_THREAD_POOL_SIZE = 10 - - def self.thread_pool_size - @thread_pool_size ||= DEFAULT_THREAD_POOL_SIZE - end - - def self.thread_pool_size=(size) - @thread_pool_size = size - end - - def self.optionally_async(collection, async) - if async - async_collection = collection.clone - async_collection.extend SupplyDrop::AsyncEnumerable - async_collection - else - collection - end - end - end -end |