Sha256: f3ab39234a4ae28930bcc70819e358a0086bc2dde45df14bc866a97c391e6fd6
Contents?: true
Size: 487 Bytes
Versions: 11
Compression:
Stored size: 487 Bytes
Contents
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
Version data entries
11 entries across 11 versions & 1 rubygems