class Concurrent::Future

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

Other tags:
    Since: - 0.5.0

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

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

Options Hash: (**opts)
  • :copy_on_deref (String) -- call the given `Proc` passing the internal value and
  • :freeze_on_deref (String) -- call `#freeze` before returning the data
  • :dup_on_deref (String) -- call `#dup` before returning the data

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