Skip to content

using ua->get_p in an async helper #1849

Answered by kraih
michaelfung asked this question in Q&A
Discussion options

You must be logged in to vote

Every await throws an exception, like a normal blocking operation. They bubble up through the stack and will need to be caught somewhere. That is exactly how it's supposed to work. Either you add a catch handler to the outermost promise, or you try/catch the thrown exception.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by michaelfung
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants