class Concurrent::Future
def initialize(opts = {}, &block)
-
(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 initialize(opts = {}, &block) raise ArgumentError.new('no block given') unless block_given? super(NULL, opts.merge(__task_from_block__: block), &nil) end