callbackhell-escape
The easyest way to escape the callback-hell. I promise you.
Installation
Usage
const Blocker = // set up a new blockerlet b = // call a asynchronous function; //normal codeflow continuesconsole // blocking until release() is calledbconsole
The Blocker can be (re)activated afterwards:
b
So you can use one blocker to execute multiple asynchronous functions in a single synchronous codeflow.