# File lib/reactor/reactor.rb, line 148 def schedule(delay, task) impl = chandler(task, self.method(:on_error)) task = Task.wrap(Cproton.pn_reactor_schedule(@impl, sec_to_millis(delay), impl)) Cproton.pn_decref(impl) return task end