-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Async Serve Command #3190
Async Serve Command #3190
Conversation
Need to work out why the configuration has broken in the tests |
Verified this works with vapor/template#131 with Leaf and Fluent and all working |
headers: request.headers | ||
) | ||
clientRequest.body = .byteBuffer(request.body) | ||
let response = try await client.execute(request: clientRequest).get() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is .get()
needed here? HTTPClient
has an async version of execute()
(with different argument labels).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One nit
@gwynne this is ready for you now I think |
These changes are now available in 4.99.3
Migrate
ServeCommand
to anAsyncCommand
to enable proper custom executor support and remove any calls towait()