@a1motion/defer 中文文档教程
defer
远程解决/拒绝承诺
Install
yarn add @a1motion/defer
Usage
import defer from "@a1motion/defer";
const promise = defer();
promise.then(() => {
// do things after
})
// somewhere else
promise.resolve();
defer
Remotely resolve/reject a promise
Install
yarn add @a1motion/defer
Usage
import defer from "@a1motion/defer";
const promise = defer();
promise.then(() => {
// do things after
})
// somewhere else
promise.resolve();
更多
你可能也喜欢
- @0x-klaytn/asset-swapper 中文文档教程
- @0x-lerna-fork/global-options 中文文档教程
- @0xc14m1z/express-pagination 中文文档教程
- @1msoft/kantui-theme-webpack-plugin 中文文档教程
- @404coder/introduction 中文文档教程
- @4a/sdk-configure 中文文档教程
- @4keys/vuejs-datepicker 中文文档教程
- @9boogie/lotide 中文文档教程
- @a-sync/opencv4nodejs 中文文档教程
- @aaronjewell/webgl2-utils 中文文档教程