Sha256: b53954abe4a80f2c20b4be954ee18984efc353e023ad7542273e255c1df60fcb
Contents?: true
Size: 286 Bytes
Versions: 1
Compression:
Stored size: 286 Bytes
Contents
# frozen_string_literal: true module LibvirtAsync module Util def create_task(parent = nil, &block) parent = Async::Task.current? if parent == :current Async::Task.new(Async::Task.current.reactor, parent, &block) end module_function :create_task end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
libvirt_async-0.4.0 | lib/libvirt_async/util.rb |