remote-controlled-promise
Create a Promise object that is controllable from outside
Requirements
- Node.js ≥ 8.9.0
Usage Example
// Create a controlled promiseconst ctrl = // `ctrl.promise` is a that controlled promisectrlpromise consolectrlconsole
This will print:
foo
bar
resolved 1234