aroberge / reeborg

Enhanced Karel-the-robot clone
http://reeborg.ca/reeborg.html
Other
47 stars 36 forks source link

Illustrating threads with web workers? #190

Closed aroberge closed 8 years ago

aroberge commented 9 years ago

It would be very useful if (Python) threads could be simulated, perhaps using web workers. I have no idea if it is possible to do so.

aroberge commented 8 years ago

Closing this issue as webworkers currently require separate scripts to be run. However, perhaps Javascript Promise (https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Promise) will allow threads to be implemented in Brython. If/when something akin to threads is supported in Brython, I will revisit this issue.