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

请问这里session关闭前执行asyncio.sleep(0)有什么特别的作用吗? #27

Open
NikkAbe opened this issue Jul 8, 2022 · 0 comments

Comments

@NikkAbe
Copy link

NikkAbe commented Jul 8, 2022

await asyncio.sleep(0)

一些教程提到asyncio.sleep(0)是交出控制权,那这里为什么要交出而不是直接close呢?

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

1 participant