Is it possible to reset an ECMAScript 6 generator to its initial state?

Technology CommunityCategory: JavaScriptIs it possible to reset an ECMAScript 6 generator to its initial state?
VietMX Staff asked 3 years ago

Once a generator enters the “completed” state it never leaves it and its associated execution context is never resumed. Any execution state associated with generator can be discarded at this point.