This was definitely one of those “ah-ha!” moments in my programming journey.
Take a read of Implementing “weightless threads” with Python generators
Some ideas are so simple they’re hard. I think this is one of those cases.
©2023