From e250a87ff485e3eb44bcb23f9e1cb6eeb1db81ea Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 27 Dec 2022 14:46:29 +0300 Subject: [PATCH] notes... Signed-off-by: Alex A. Naanou --- Promise.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Promise.js b/Promise.js index 0506381..1e14219 100644 --- a/Promise.js +++ b/Promise.js @@ -344,6 +344,7 @@ object.Constructor('IterablePromise', Promise, { // await Promise.iter(['a', 'b', 'c', [3,2,1], Promise.all([1,2,3])], e => [e]) // this does not flatten the promise: // await Promise.iter(['a', 'b', 'c', [3,2,1], Promise.all([1,2,3])]).flat() + // XXX need a strict spec... return elem instanceof IterablePromise ? (elem.isSync() ? handler(elem.sync())