3 ms·
If for some reason you end up writing javascript that only needs to run on Firefox, you do get coroutines via the yield keyword. Pretty sure it will also appea
by shardling 14y ago
If for some reason you end up writing javascript that only needs to run on Firefox, you do get coroutines via the yield keyword. Pretty sure it will also appear in a future version of javascript.
https://developer.mozilla.org/en-US/docs/JavaScript/New_in_JavaScript/1.7 https://developer.mozilla.org/en-US/docs/JavaScript/New_in_J...
- willvarfar 14y agoAh the lament that Chrome doesn't do yield, list comprehensions etc. Why, JS 1.7 looks almost like Python!
- Sephr 14y agoI wrote a library that adds support for this using yield: http://eligrey.com/blog/post/pausing-javascript-with-async-js http://eligrey.com/blog/post/pausing-javascript-with-async-j...