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

async example #3

Open
stellanhaglund opened this issue Jan 10, 2018 · 2 comments
Open

async example #3

stellanhaglund opened this issue Jan 10, 2018 · 2 comments

Comments

@stellanhaglund
Copy link

Hi will the routine resume once it has finished the async operation using await?
I tried your example but I'm unable to get any return from the async function unless I comment out the sleep_for part.

@tonbit
Copy link
Owner

tonbit commented Feb 8, 2018

When current routine awaits an async operation, and async operation doesn't finish at once, current routine will yield, then this routine cann't be resumeb by itself, it must be resumed by other active routine.

@tonbit
Copy link
Owner

tonbit commented Feb 8, 2018

I have updated demo code, added "resume awaiting routine".

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