class Concurrent::Delay
def initialize(opts = {}, &block)
-
(ArgumentError)
- if no block is given
Other tags:
- Yield: - the delayed operation to perform
def initialize(opts = {}, &block) raise ArgumentError.new('no block given') unless block_given? super(&nil) synchronize { ns_initialize(opts, &block) } end