class Concurrent::Future

def self.execute(opts = {}, &block)

Returns:
  • (Future) - the newly created `Future` in the `:pending` state

Raises:
  • (ArgumentError) - if no block is given

Options Hash: (**opts)
  • :args (object, Array) -- zero or more arguments to be passed the task

Other tags:
    Yield: - the asynchronous operation to perform
def self.execute(opts = {}, &block)
  Future.new(opts, &block).execute
end