Skip to content

Instantly share code, notes, and snippets.

@indongyoo
Created April 3, 2018 12:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save indongyoo/b1969d1d6f4e25fddc9d0b24b5c38006 to your computer and use it in GitHub Desktop.
Save indongyoo/b1969d1d6f4e25fddc9d0b24b5c38006 to your computer and use it in GitHub Desktop.
pipe(
a => { throw 'ho' },
a => 10
).error(
_ => console.log('에러!')
).complete(
a => console.log('성공 - ', a)
) ();
// 에러!
pipe(
a => 10
).error(
_ => console.log('에러!')
).complete(
a => console.log('성공 - ', a)
) ();
// 성공 - 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment