class Qpid::Proton::Reactor::Task

Public Class Methods

new(impl) click to toggle source
# File lib/reactor/task.rb, line 32
def initialize(impl)
  @impl = impl
  self.class.store_instance(self, :pn_task_attachments)
end
wrap(impl) click to toggle source
# File lib/reactor/task.rb, line 27
def self.wrap(impl)
  return nil if impl.nil?
  self.fetch_instance(impl, :pn_task_attachments) || Task.new(impl)
end