Exemple #1
0
 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
Exemple #2
0
 def _set_timeout(self, secs):
     return pn_reactor_set_timeout(self._impl, secs2millis(secs))