- From: Andreu Botella <notifications@github.com>
- Date: Thu, 12 Jan 2023 11:13:58 -0800
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 12 January 2023 19:14:11 UTC
> one issue i currently havent handled yet is what to do in case the `finally` callback is a promise. The call in the flushPromise fulfilled case should be easier, however the other call in `transformStreamErrorWritableAndUnblockWrite`, unsure how to proceed. Handling this is complicated, since `TransformStreamErrorWritableAndUnblockWrite` is making it so writing to the writable stream will throw, and this cannot be delayed until the `finally` promise resolves. So the `finally` callback can't work in a similar way to `Promise.prototype.finally`. Can we ignore the returned promise and let it cause an unhandled promise rejection? -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/streams/pull/1231#issuecomment-1380884992 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/streams/pull/1231/c1380884992@github.com>
Received on Thursday, 12 January 2023 19:14:11 UTC