Re: [whatwg/streams] Add helpers to use initial values of Promise methods (#1010)

ricea commented on this pull request.



>          function next(done) {
           if (done) {
             resolveLoop();
           } else {
-            pipeStep().then(next, rejectLoop);
+            uponPromise(pipeStep(), next, rejectLoop);

I think this use of `uponPromise()` is fine.

-- 
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/1010#discussion_r317100324

Received on Friday, 23 August 2019 12:06:27 UTC