Last active
December 7, 2016 10:54
-
-
Save aherve/071a159203d565f2a756b9e307ae9e67 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| async function demo (userId: string) { | |
| try { | |
| const user = await User.findById(user) | |
| const result = await doSomethingAsync(user) | |
| finalResult(user, result) | |
| } catch (e) { | |
| dealWithIt(e) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment