- From: Adam Rice <notifications@github.com>
- Date: Wed, 22 Apr 2020 01:32:06 +0000 (UTC)
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 22 April 2020 01:32:19 UTC
@ricea commented on this pull request. > + +// https://heycam.github.io/webidl/#resolve +function resolvePromise(p, value) { + promiseSideTable.get(p).resolve(value); + promiseSideTable.get(p).stateIsPending = false; +} + +// https://heycam.github.io/webidl/#reject +function rejectPromise(p, reason) { + promiseSideTable.get(p).reject(reason); + promiseSideTable.get(p).stateIsPending = false; +} + +// https://heycam.github.io/webidl/#a-promise-resolved-with +function promiseResolvedWith(value) { + // Cannot use original Promise.resolve since that will return value itself sometimes, unlike Web IDL. Is this observable? Would it change the timing of resolving _startPromise_? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/streams/pull/1035#pullrequestreview-397766675
Received on Wednesday, 22 April 2020 01:32:19 UTC