Fascinating. The reference to the classic Mac OS with non-preemptive multi-tasking is quite cool. The concept fits nicely with Python's async/await coroutines that need to collaborate with a periodic OS request to permit interaction with streams of events from another source (i.e., a foreground window.)
Writing Interactive Compute-Intensive Programs for Web Browsers by Henry Kautz Download Medium on the App Store or Play Store