示例#1
0
 def process_stream_events():
     while stream.getsockopt(zmq.EVENTS) & zmq.POLLIN:
         with context():
             kernel.do_one_iteration()
示例#2
0
 def process_stream_events():
     while stream.getsockopt(zmq.EVENTS) & zmq.POLLIN:
         with context():
             kernel.do_one_iteration()