Review
asynquence is a simple abstraction — a sequence is a series of (async) steps — on top of Promises, aimed at making working with various asynchronous patterns much easier, without any compromise in capability.
There are other goodies in the asynquence core API and its contrib plug-ins beyond what we saw in this appendix, but we’ll leave that as an exercise for the reader to go check the rest of the capabilities out.
You’ve now seen the essence and spirit of asynquence. The key take away is that a sequence is comprised of steps, and those steps can be any of dozens of different variations on Promises, or they can be a generator-run, or… The choice is up to you, you have all the freedom to weave together whatever async flow control logic is appropriate for your tasks. No more library switching to catch different async patterns.
If these asynquence snippets have made sense to you, you’re now pretty well up to speed on the library; it doesn’t take that much to learn, actually!
If you’re still a little fuzzy on how it works (or why!), you’ll want to spend a little more time examining the previous examples and playing around with asynquence yourself, before going on to the next appendix. Appendix B will push asynquence into several more advanced and powerful async patterns.