We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
未来希望有个er-thenx的库,可以提供类似这样的功能:
er-thenx
promise.then.returnValue(foo); // 指定返回值 promise.then.bound(fn, thisObject); // 指定this对象 promise.then.getProperty('foo'); // 指定获取某个属性
当然也能这样:
promise.thenReturnValue(foo); // 指定返回值 promise.thenBound(fn, thisObject); // 指定this对象 promise.thenGetProperty('foo'); // 指定获取某个属性
不过都需要Promise的实现有一定的扩展性,可以往上加东西
Promise
The text was updated successfully, but these errors were encountered:
在promise库中实现
Sorry, something went wrong.
因为er无法直接改用promise库,所以这事还得在er中做一次
No branches or pull requests
未来希望有个
er-thenx
的库,可以提供类似这样的功能:当然也能这样:
不过都需要
Promise
的实现有一定的扩展性,可以往上加东西The text was updated successfully, but these errors were encountered: