User FAQs

If you have a question, please send it to us.

1) What is a Promise ?
This is the agreement of a future value.
Its a transaction

2) How does it solve the inversion of control issue.
Instead of passing the continuation in it passes something back Which allows me to decide what the next step is

3) What are the problems with Callbacks ?
Handing the control of the rest of your program to a third party or utility.
How do you know the utility is going to call your callback functions correctly.
Callbacks suffer from the "Inversion of Control".

4) How do you pause a Generator ?
Calling the yield keyword

5) How do you resume a Generator ?
Using the next method

6) How can be combine Generators and Promises ?
The generator yields out a promise
When the promise finishes this restarts the generator

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