- From: Adam Rice <notifications@github.com>
- Date: Tue, 11 Oct 2016 22:44:51 -0700
- To: whatwg/streams <streams@noreply.github.com>
Received on Wednesday, 12 October 2016 05:45:24 UTC
So it is explicitly async then. The reason I'm asking is that there are a bunch of tests using setTimeout(restOfTheTest, 0) to ensure that the sink's start() promise has resolved (even when it has no start() method). This is ugly and I was wondering what to do about it. I think in most cases the setTimeout() can be replaced with writer.ready.then(), unless the test is intended to check the ordering of some other promise(s) with respect to the initial value of writer.ready, in which case we'll have to use delay(0).then(). Is it okay for the spec to use w3.org/.../promises-guide as the definition for that terminology? -- 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/issues/532#issuecomment-253124851
Received on Wednesday, 12 October 2016 05:45:24 UTC