Thens 🕺🏻 🕺🏻 🕺🏻
The instrument to create async functions sequence, powered by Promise. It is Promise.then
in the plural.
Forget about Promise.resolve
, or new Promise
, or then.then.then
chain. Just compose functions and await result. Or use it as handler for native then
, or a part of thens
. And don't forget it supports generators.
Enjoy.
yarn add thens
Usage.
; const calc = ; // 15; // And don't forget to add final catch
License
MIT, 2017, Vladimir Kalmykov vladimirmorulus@gmail.com