async Responder impl in Rocket 0.5 #1727
Answered
by
SergioBenitez
barlindhaug
asked this question in
Questions
-
I have a responder that needs to call an async function, here
Will give the following error:
|
Beta Was this translation helpful? Give feedback.
Answered by
SergioBenitez
Jun 25, 2021
Replies: 1 comment 1 reply
-
It is not. You should have a constructor that is |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
barlindhaug
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is not. You should have a constructor that is
async
instead. See, for example,NamedFile::open()
.