From cf15e7c6282547f25d6b09d42579e9abe5a575df Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 9 Jul 2022 11:21:20 +0300 Subject: [PATCH] docs... Signed-off-by: Alex A. Naanou --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index bebc234..c91d360 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ stoppable() ### `stoppable.STOP / stoppable.STOP(..)` -A special object/constructor that can be either returned/thrown _as-is_ or +A special object/constructor that can either be returned/thrown _as-is_ or used to create an _instance_ to be returned thrown. ```bnf @@ -67,8 +67,9 @@ stoppable.STOP() -> ``` -This will get intercepted by `stoppable(..)` and appropriately handled merging -it into the return/yield value and stopping the function/iterator. +This will get intercepted by `stoppable(..)` and appropriately handled, stopping +the function iterator and merging the value into the yields of a generator or +returning it from a function depending on the wrapper type. `` can contain a value that will get handled by `stoppable(..)` (default: `undefined`).