-
**What is the current behavior?**
When calling two promises in a row, if one has a `success` defined, but the other does not, then the first one closes instantly. Example:
```
await toast.prom…
-
This module doesn't require global typings in production, it'd be good to type it for ES5 without typings and use the ES6 typings instead.
-
The logic in `./promise/promise.js` picks up the global `window` defined by the `./tests/test-api.js`, doesn't find a Promise implementation, and goes on to use our polyfill instead of native promises…
-
### Version
21.5.0
### Platform
n/a
### Subsystem
node:test
### What steps will reproduce the bug?
1. Write code that calls a `describe`, `it`, or `test` function imported from [`…
-
## Promise中resolve一个Promise
从例子中,显然能发现如果Resolve/Reject传过来的同样是Promise,那么继续接管当前Promise,直到Promise完成再将**数据**交给第一个Then。
```js
const p1 = () => {
return Promise.resolve(new Promise((resolve) =…
-
I am finding this library quite hard to use with all the asynchronous callbacks. I am trying to compile a list of installed software and patches which requires looping through multiple keys and steppi…
-
-
Latest bun (1.1.26) will throw on this example:
```
const aaa = 'test'
aaa.promise = 'whatever'
```
![image](https://github.com/user-attachments/assets/38123acf-fb0b-458b-9ac6-5d14656fd3c1)
Th…
-
콜백 함수를 통해 비동기 처리 결과에 대한 후속 처리를 수행하는 비동기 함수가 비동기 처리 결과를 가지고 또다시 비동기 함수를 호출해야 한다면 콜백 함수 호출이 중첩되어 복잡도가 높아지는 현상이 발생하는데, 이를 콜백 헬이라 한다.
프로미스는 비동기 처리 상태와 처리 결과를 관리하는 객체다.
Promise는 호스트 객체가 아닌 ECMAScript…
-
### Motivation: Why do you think this is important?
We pass around most of our configuration in flyte via python `@dataclass` as this makes it very easy for us to manage configuration and such. Unf…