4 ms·
Wow, I'm seriously overjoyed to discover the "yield" operator, which I did not know existed (it barely shows up anywhere!). No more hackishly using window.setTi
by yid 15y ago
Wow, I'm seriously overjoyed to discover the "yield" operator, which I did not know existed (it barely shows up anywhere!). No more hackishly using window.setTimeout() to yield in JS pseudo-thread simulations!
- ck2 15y agoJust note the small print that yield is JS 1.7 Firefox 2 was the first to have JS 1.7 but I dunno if any version of IE has yield, maybe IE9 ?
- ErikCorry 15y agoNo version of IE or Safari or Chrome has yield.
- masklinn 15y agoJavascript 1.x where x > 5 are proprietary extensions of Mozilla. Some of those extensions (e.g. Array Extras) trickled into the wider language, but as far as I know most of them (including let and generators) are confined to Gecko-based browsers still.
- yid 15y agoWell, that significantly dampens my excitement...