Added in ES 2016.
A Generator Function is a single function that doesn't resolve its body immediately
keywords - "next", "done"

Uses 'yield' keyword.
This constructors an iterator
This has the ability to pause itself
This code looks synchronous but actually runs asynchronous

© 2022 Better Solutions Limited. All Rights Reserved. © 2022 Better Solutions Limited TopPrevNext