Created
May 14, 2018 11:51
-
-
Save k0pernikus/ed2788130d15aca80cbdaf398da89719 to your computer and use it in GitHub Desktop.
highland error promise rejection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
highland(range).map((i) => { | |
return highland(createPromise(i)); | |
}) | |
.flatten() | |
.errors((error, push) => { | |
if (error) { | |
push(null, null); | |
} | |
}) | |
.compact() | |
.toArray((items) => console.log(items)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment