def schedule(self, delay, task): impl = _chandler(task, self.on_error) task = Task.wrap(pn_reactor_schedule(self._impl, secs2millis(delay), impl)) pn_decref(impl) return task
def _set_timeout(self, secs): return pn_reactor_set_timeout(self._impl, secs2millis(secs))