Skip to content
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

Change async fns to return Future + Send. #314

Merged
merged 4 commits into from
Jul 29, 2022
Merged

Conversation

twifkak
Copy link
Collaborator

@twifkak twifkak commented Jun 22, 2022

Change local variables in async function to implement Send, so that they return
Futures that implement Send.

This is a prerequisite for serving SXGs in a request handler in hyper, without
relying on something like block_on or thread::spawn which could limit
concurrency.

Addresses #250.

@twifkak twifkak requested a review from antiphoton June 22, 2022 01:36
antiphoton
antiphoton previously approved these changes Jun 22, 2022
twifkak added 3 commits July 29, 2022 10:53
Change local variables in async function to implement Send, so that they return
Futures that implement Send.

This is a prerequisite for serving SXGs in a request handler in hyper, without
relying on something like block_on or thread::spawn which could limit
concurrency.
@twifkak twifkak enabled auto-merge (squash) July 29, 2022 18:40
@twifkak twifkak requested a review from antiphoton July 29, 2022 18:40
@twifkak twifkak merged commit 97841a9 into google:main Jul 29, 2022
@twifkak twifkak deleted the future-send branch July 29, 2022 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants