Full threadsametmax·Isn't it exactly the use case of generators ? I though js had the yield keyword by now.View on HN