Skip to content

Using HummingbirdFluent with Async/Await #114

Answered by adam-fowler
brucemontegani asked this question in Q&A
Discussion options

You must be logged in to vote

Yes you can use hummingbird-fluent with async/await. There is even some example code here https://github.com/hummingbird-project/hummingbird-examples/blob/main/session-persist-async/Sources/App/Controllers/UserController.swift

The method UserController.create checks if a user is already in the database and if not creates a new one.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by brucemontegani
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
2 participants