Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slightly misleading mention of "asynchronous functions" #40

Open
oliverjam opened this issue Apr 1, 2019 · 0 comments
Open

Slightly misleading mention of "asynchronous functions" #40

oliverjam opened this issue Apr 1, 2019 · 0 comments
Assignees

Comments

@oliverjam
Copy link

It's not possible to wrap an asynchronous function in a try/catch block, so throwing should only be used with synchronous code.

docs/approach_2.md

This line is kind of misleading in that try/catch is exactly how you error handle a proper async function.

I know we don't teach promises/async functions before this, but given async/await are really well supported now we're going to have students who have encountered them before this week.

Not sure I have a suggestion other than to disambiguate by saying "asynchronous code" instead of "asynchronous function"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants