From beb6c763637dff6ecb404362f6d9b5f747ee92f6 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 9 Jun 2022 11:46:05 +0300 Subject: [PATCH 1/2] docs... Signed-off-by: Alex A. Naanou --- Promise.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Promise.js b/Promise.js index a15f712..081e4f3 100644 --- a/Promise.js +++ b/Promise.js @@ -3,6 +3,7 @@ * This defines the following extensions to Promise: * * Promise.iter(seq) +* .iter() * Iterable promise object. * Similar to Promise.all(..) but adds basic iterator/generator * API and will resolve the items as they are ready (resolved). @@ -16,6 +17,11 @@ * Exposes the API to resolve/reject the promise object * externally. * +* .as(obj) +* Promise proxy. +* Proxies the methods available from obj to promise value. +* +* * * **********************************************/ /* c8 ignore next 2 */ From 10aa4403177dec0894fe88ca8cae05f2da6eb299 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 9 Jun 2022 22:49:43 +0300 Subject: [PATCH 2/2] docs... Signed-off-by: Alex A. Naanou --- Promise.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Promise.js b/Promise.js index 081e4f3..2367c5b 100644 --- a/Promise.js +++ b/Promise.js @@ -186,6 +186,7 @@ object.Constructor('IterablePromise', Promise, { // .includes(..) // .some(..) / .every(..) // .sort(..) + // XXX update this note... map: function(func){ return this.constructor(this, function(e){ @@ -359,8 +360,9 @@ object.Constructor('IterablePromise', Promise, { // // // handler(e) - // -> [value] + // -> [value, ..] // -> [] + // -> // // // NOTE: element index is unknowable until the full list is expanded