Awesome
Revival Kit
Let's revive from Ctrl-C or any exception!
The code of 01_consume_queue.py:
from time import sleep
from revivalkit import revive
o = revive()
if not hasattr(o, 'que'):
o.que = list(range(10))
print('current que: ', o.que)
while o.que:
sleep(0.25)
print('consumed', o.que.pop())
Thanks
Thanks uranusjr and ypsun's help at Taipei.py Projects On. :D