class Concurrent::ImmediateExecutor
def <<(task)
def <<(task) post(&task) self end
def post(*args, &task)
def post(*args, &task) raise ArgumentError.new('no block given') unless block_given? task.call(*args) true end
def <<(task) post(&task) self end
def post(*args, &task) raise ArgumentError.new('no block given') unless block_given? task.call(*args) true end