Module: LibvirtAsync::Util
- Defined in:
- lib/libvirt_async/util.rb
Class Method Summary collapse
Class Method Details
.create_task(parent = nil, &block) ⇒ Object
6 7 8 9 |
# File 'lib/libvirt_async/util.rb', line 6 def create_task(parent = nil, &block) parent = Async::Task.current? if parent == :current Async::Task.new(Async::Task.current.reactor, parent, &block) end |