class Async::Task
def async(*arguments, **options, &block)
def async(*arguments, **options, &block) raise FinishedError if self.finished? task = Task.new(self, **options, &block) task.run(*arguments) return task end
def async(*arguments, **options, &block) raise FinishedError if self.finished? task = Task.new(self, **options, &block) task.run(*arguments) return task end