Module: Enumerable
- Defined in:
- lib/enumerable/async.rb
Overview
Extension to Ruby's Enumerable module that adds asynchronous capabilities.
Instance Method Summary collapse
-
#async(**kwargs) ⇒ Async::Enumerator
Returns an AsyncEnumerator wrapper that provides asynchronous versions of Enumerable methods for parallel execution.
Instance Method Details
#async(**kwargs) ⇒ Async::Enumerator
Returns an AsyncEnumerator wrapper that provides asynchronous versions of Enumerable methods for parallel execution.
This method enables concurrent processing of Enumerable operations using
the socketry/async library, allowing for significant performance
improvements when dealing with I/O-bound operations or large collections.
35 36 37 |
# File 'lib/enumerable/async.rb', line 35 def async(**kwargs) Async::Enumerator.new(self, **kwargs) end |