You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

receive_data.py 303 B

1234567891011121314151617
  1. import asyncio
  2. from dora import Node
  3. async def main():
  4. node = Node()
  5. for _ in range(100):
  6. event = await node.recv_async()
  7. print(event)
  8. # del event
  9. print('done!')
  10. if __name__ == '__main__':
  11. loop = asyncio.get_event_loop()
  12. loop.run_until_complete(main())