-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
LibDNS: Remove usage of await #6901
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
base: master
Are you sure you want to change the base?
Conversation
26dd7b4 to
dd30452
Compare
alimpfard
left a comment
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.
This is a lot of moving stuff around, but nothing weird sticks out so 🤷 refactor LGTM at least.
konradekk
left a comment
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.
did not read the contents carefully; just nitpicking (as usual from me).
| }; | ||
|
|
||
| TRY_OR_FAIL(resolver.when_socket_ready()->await()); | ||
| auto when_socket_ready_promise = resolver.when_socket_ready(); |
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.
socket_ready/socket_readiness or socket_is_ready? (when_ is the resolution part; _promise is unnecessary in typed environment? same for names below?)
This is part of the process of removing event loop spinning from the codebase.