From 7ea90acda449aeea1e5035dab5cece2fbcff0b5b Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 13 Apr 2021 05:26:17 +0300 Subject: [PATCH] docs... Signed-off-by: Alex A. Naanou --- README.md | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c1f33dc..d57111b 100644 --- a/README.md +++ b/README.md @@ -1233,7 +1233,7 @@ passing each handler the arguments. #### `.then(..)` - +Extended `.then(..)` implementation. See [`.then(..)`](#promise-iterthen--promise-itercatch--promise-iterfinally) for details. @@ -1305,7 +1305,7 @@ This property is read-only. #### `.then(..)` - +Extended `.then(..)` implementation. See [`.then(..)`](#promise-iterthen--promise-itercatch--promise-iterfinally) for details. @@ -1390,11 +1390,16 @@ Promise.iter() #### `.then(..)` / `.catch(..)` / `.finally(..)` - +An extension to +[`.then(..)` API](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then) +this adds the ability to pass no arguments +```bnf +.then() + -> +``` -Note that `.then(..)` here can be called without arguments returning a generic -promise wrapper. This can be useful to hide the extended promise API from further -code. +This will return a generic promise wrapper passing through the results as-is. This +can be useful to hide the extended promise API from further code. #### Advanced handler