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

fix(rustws): avoid sleep locking main thread #43

Merged
merged 1 commit into from
Apr 21, 2023

Conversation

psykzz
Copy link
Contributor

@psykzz psykzz commented Apr 21, 2023

time.sleep was blocking
using await asyncio.sleep resolved the issue.

This is important if rustplus is used within other asyncio frameworks (in my case discordpy)

`time.sleep` was blocking
using `await asyncio.sleep` resolved the issue.

This is important if rustplus is used within other asyncio frameworks (in my case `discordpy`)
@olijeffers0n olijeffers0n merged commit 47ab4cb into olijeffers0n:master Apr 21, 2023
@olijeffers0n
Copy link
Owner

LGTM - Thanks

@psykzz psykzz deleted the patch-1 branch April 21, 2023 16:44
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