Sha256: b93c1b742d36abe55a2089523c9619942fda7554fffbff22d9117ee6eb23fa5c

Contents?: true

Size: 255 Bytes

Versions: 6

Compression:

Stored size: 255 Bytes

Contents

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

6 entries across 6 versions & 1 rubygems

Version Path
libvirt_async-0.3.2 lib/libvirt_async/util.rb
libvirt_async-0.3.1 lib/libvirt_async/util.rb
libvirt_async-0.3.0 lib/libvirt_async/util.rb
libvirt_async-0.2.1 lib/libvirt_async/util.rb
libvirt_async-0.2.0 lib/libvirt_async/util.rb
libvirt_async-0.1.1 lib/libvirt_async/util.rb