@actualwave/deferred 中文文档教程
deferred()
使用公开的 resolve()
和 reject()
处理程序创建 Promise 的简单函数。
import deferred from '@actualwave/deferred';
const { resolve, reject, promise } = deferred();
deferred()
Simple function to create Promise with exposed resolve()
and reject()
handlers.
import deferred from '@actualwave/deferred';
const { resolve, reject, promise } = deferred();