Skip to content

Is it possible to use asynchronous functions in/as http handlers? #50

Answered by ghost
AlexTolmachev asked this question in Q&A
Discussion options

You must be logged in to vote

You have two problems here - you can't return from a handler without responding OR attaching an abort handler, just like the message you got says. This message probably needs to be simplified, but it should terminate.

Second, it is now possible to use async/await as per last commit, I tested it and it works.

Replies: 5 comments

Comment options

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

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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
1 participant
Converted from issue

This discussion was converted from issue #50 on December 09, 2020 11:56.