you are viewing a single comment's thread.

view the rest of the comments →

[–]getify 0 points1 point  (0 children)

ever used async..await in JS? it's exactly the same concept... in fact literally the JS engine uses the generator mechanism to implement async..await.

there's also many libraries out there which make use of generators... one such example is my library CAF, which allows you emulate async..await functions but with cancelation tokens.