Tag:Kuku

  • NPM cool Library: Q enhanced promise

    Time:2020-10-27

    NPM cool library, two minutes a day, learn about a popular NPM library. Yesterday we learned how to use promise to manage asynchronous tasks, but the es2015 standard promise object implementation interface is very limited, only containsPromise.all() Promise.race() promise.then() promise.catch()For example, we can’t directly judge whether a promise object has been completed. q Q is […]

  • NPM cool Library: Bluebird promise tool library

    Time:2020-10-26

    NPM cool library, two minutes a day, learn about a popular NPM library. Yesterday we learned about the enhanced promise Library: Q. Q library implements more promise methods than es2015 standard. Today, we will continue to learn another powerful promise tool library: Bluebird. bluebird First of all, like the Q library, Bluebird is an enhanced […]