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

Simple async_await #202

Open
GwenNelson opened this issue Mar 21, 2020 · 1 comment
Open

Simple async_await #202

GwenNelson opened this issue Mar 21, 2020 · 1 comment

Comments

@GwenNelson
Copy link

Just wondering if something like this could be integrated into the library, it basically allows to await on a coroutine and then get the return value.

My implementation is a quick hack as a proof of concept, see this gist:

https://gist.github.com/GwenNelson/ae315c9aaadf9d4e354b0222958aed84

@sustrik
Copy link
Owner

sustrik commented Mar 22, 2020

What's the point? If the parent coroutine waits for the child coroutine, it can as well do the work in normal synchronous function, no?

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

No branches or pull requests

2 participants