mirror of
https://github.com/flynx/types.js.git
synced 2025-10-29 02:20:07 +00:00
cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
4644610445
commit
7dfb0c704f
@ -150,7 +150,7 @@ object.Constructor('IterablePromise', Promise, {
|
||||
[map](function(elem){
|
||||
return elem && elem.then ?
|
||||
(stoppable ?
|
||||
// stoppable -- need to handle stop...
|
||||
// stoppable -- need to handle stop async...
|
||||
elem
|
||||
.then(function(res){
|
||||
return !stop ?
|
||||
@ -186,11 +186,10 @@ object.Constructor('IterablePromise', Promise, {
|
||||
try{
|
||||
return pack()
|
||||
}catch(err){
|
||||
return handleSTOP(err) }
|
||||
return handleSTOP(err) } }
|
||||
|
||||
// pack (non-stoppable)...
|
||||
} else {
|
||||
return pack() } },
|
||||
return pack() },
|
||||
/*/
|
||||
return [list].flat()
|
||||
.map(function(elem){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user