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

asycioをつかってpongが待つ処理をノンブロッキングにする #9

Open
up0pt opened this issue Jun 14, 2024 · 0 comments

Comments

@up0pt
Copy link
Collaborator

up0pt commented Jun 14, 2024

  • 課題
    pongのスレッドがブロッキングしており,pongが十分大きい個数を並列・並行に動作できていない

  • 解決策の案
    async/awaitを利用する


time.sleep(5)
asycio.sleep()loop.run_in_executor(None, time.sleep, 5)などに変更するなどが案.(正しいかは未確認)

@up0pt up0pt changed the title asycio.sleep()をつかってノンブロッキングにする asycioをつかってpongが待つ処理をノンブロッキングにする Jun 14, 2024
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