| 06:00 | <annevk> | domfarolino: yup |
| 06:00 | <annevk> | domfarolino: see also @bradeeoh |
| 10:38 | <Ms2ger> | In https://w3c.github.io/ServiceWorker/#run-service-worker-algorithm , step 4.13 says "If callbackSteps is provided, run them with evaluationStatus on the original thread that invoked this algorithm, while continuing in parallel with these steps." |
| 10:39 | <Ms2ger> | How does that work? |
| 12:54 | <annevk> | Ms2ger: that doesn't seem entirely correct, it'd have to queue on the original thread |
| 12:54 | <Ms2ger> | That sounds more like something that could work, certainly |
| 12:55 | <Ms2ger> | Could you file it? |
| 12:56 | <annevk> | not right now |
| 12:59 | <Ms2ger> | https://github.com/w3c/ServiceWorker/issues/1403 |
| 16:32 | <annevk> | Ta |
| 18:21 | <Borewit> | I have question regarding ReadableStream |
| 18:21 | <Borewit> | as part of the Web API, is this the right place? Is someone available to look into my question? |
| 18:34 | <Borewit> | Anyone reading? |
| 18:38 | <Mek> | you're more likely to get a useful answer by asking your question, rather than by asking if you should ask your question.... |
| 18:48 | <Borewit> | Aight, I try to release the lock of a Reader (ReadableStreamDefaultReader). I do not manage to synchronize for the read to be out of the way. Of I use the promise, returned from the read, I get an error the read is not settled. |
| 19:05 | <Borewit> | So I try to cancel a Readable stream. Therefor I need to release the reader first. I I try to unlock the reader I get an error there is read going on. So I wait until the read promise resolves, I unsure no other read will done. Then I get an error the read has not settled yet. I can go arround the problem by setting a timeout (works for Chrome, Safari, Edge, not for Firefox). |
| 19:07 | <Borewit> | This where the error is thrown: https://github.com/Borewit/readable-web-to-node-stream/blob/891285d073ecb77f8537d02d96feb4ae050b2157/src/index.ts#L76 |
| 19:08 | <Borewit> | If I increase time ¨sleep timer¨ one line before, from 1 msec to 1 sec, it becomes more likely to pass: https://github.com/Borewit/readable-web-to-node-stream/blob/891285d073ecb77f8537d02d96feb4ae050b2157/src/index.ts#L76 |
| 19:32 | <Borewit> | So the expect error is: ¨TypeError: Cannot release a readable stream reader when it still has outstanding read() calls that have not yet settled¨ |