async wait until:使用方便的Promise API等待给定的回调返回真实值 源码
异步等待直到 等待谓词为真并解决一个承诺。 该库提供TypeScript定义。 无需依赖。 请确保您的环境具有Promise支持(或具有polyfill)。 安装 $ npm install --save async-wait-until 用法 下面描述了简单的用例: const waitUntil = require ( 'async-wait-until' ) ; const timeOfStart = Date . now ( ) ; // Wait for some async operation to end waitUntil ( ( ) => { const timePas
下载地址
用户评论