olijeffers0n / rustplus

Rust+ API Wrapper Written in Python for the Game: Rust
https://rplus.ollieee.xyz/
MIT License
102 stars 28 forks source link

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

Closed psykzz closed 1 year ago

psykzz commented 1 year ago

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 commented 1 year ago

LGTM - Thanks