Created
January 5, 2021 11:35
-
-
Save zlatkov/02d5b86f943ac984e58aed6e8d7c2fe4 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 run() { | |
try { | |
await foo(); | |
} catch(err) { | |
// This block will be reached now. | |
} finally { | |
// This block will be reached at the end. | |
} | |
} | |
run(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment