Re:Show HN: Python Code Resumption. A way to stop and resume...
by ag_rin on Wednesday August 07, 2024 @06:19PM
(#41186160)
Wow that’s an actual use case! Pretty cool stuff. Unfortunately I think getting this code to run with asyncio would be a lot more work since there’s a lot more to consider. I guess it also depends on how stateful the coroutines are. The less state the easier it should be to use my jump method to do what you want.
[ Parent
| on HN ]
Re:Show HN: Python Code Resumption. A way to stop and resume...
by jawerty on Wednesday August 07, 2024 @09:44PM
(#41187318)
haha yea i've been really enjoying this project. In terms of statefulness. It is quite a stateful coroutine. I will play around with it and see if i can get it working. Would be nice to use a more goto like method than raising exceptions. Thanks for your work