Method: Concurrent::Future.execute
- Defined in:
- lib/concurrent/future.rb
.execute(opts = {}) { ... } ⇒ Future
Create a new Future object with the given block, execute it, and return the :pending object.
74 75 76 |
# File 'lib/concurrent/future.rb', line 74 def self.execute(opts = {}, &block) Future.new(opts, &block).execute end |