diff --git a/Promise.js b/Promise.js index a15f712..2367c5b 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 */ @@ -180,6 +186,7 @@ object.Constructor('IterablePromise', Promise, { // .includes(..) // .some(..) / .every(..) // .sort(..) + // XXX update this note... map: function(func){ return this.constructor(this, function(e){ @@ -353,8 +360,9 @@ object.Constructor('IterablePromise', Promise, { // // // handler(e) - // -> [value] + // -> [value, ..] // -> [] + // -> // // // NOTE: element index is unknowable until the full list is expanded