class Async::Scheduler

def async(*arguments, **options, &block)

Deprecated:
  • Use {#run} or {Task#async} instead.
def async(*arguments, **options, &block)
	warn("Async::Scheduler#async is deprecated. Use `run` or `Task#async` instead.", uplevel: 1, category: :deprecated) if $VERBOSE
	
	Kernel.raise ClosedError if @selector.nil?
	
	task = Task.new(Task.current? || self, **options, &block)
	
	task.run(*arguments)
	
	return task
end