Class: Rubee::ThreadAsync

Inherits:
Object
  • Object
show all
Defined in:
lib/rubee/async/thread_async.rb

Instance Method Summary collapse

Instance Method Details

#perform_async(**args) ⇒ Object



3
4
5
6
# File 'lib/rubee/async/thread_async.rb', line 3

def perform_async(**args)
  color_puts('WARN: ThreadAsync engine is experimental!', color: :yellow)
  ThreadPool.instance.enqueue(args[:_class], args[:options])
end