Example #1
0
 def on_cancel_timer_event(loop, timer_id, arg):
     cancel_timer_id = arg
     # This loop is the low-level zloop not the
     # types.Loop class. Need a cleaner way! 
     from pyczmq import zloop
     zloop.timer_end(loop, cancel_timer_id)
     return 0
Example #2
0
 def on_cancel_timer_event(loop, item, arg):
     cancel_timer_id = arg
     rc = zloop.timer_end(loop, cancel_timer_id)
     assert rc == 0
     return 0
Example #3
0
 def timer_end(self, timer_id):
     zloop.timer_end(self.loop, timer_id)
Example #4
0
 def on_cancel_timer_event(loop, item, arg):
     cancel_timer_id = arg
     rc = zloop.timer_end(loop, cancel_timer_id)
     assert (rc == 0)
     return 0
Example #5
0
 def timer_end(self, timer_id):
     zloop.timer_end(self.loop, timer_id)
Example #6
0
 def timer_end(self, arg):
     arg_handle = ffi.new_handle(arg)
     zloop.timer_end(self.loop, arg_handle)