Method: SupplyDrop::Util.optionally_async
- Defined in:
- lib/supply_drop/util.rb
.optionally_async(collection, async) ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/supply_drop/util.rb', line 13 def self.optionally_async(collection, async) if async async_collection = collection.clone async_collection.extend SupplyDrop::AsyncEnumerable async_collection else collection end end |