scratchattach icon indicating copy to clipboard operation
scratchattach copied to clipboard

(upcoming update) Enhance cloud requests by replacing busy-sleep event loop

Open TimMcCool opened this issue 1 year ago • 6 comments

Replacing the busy-sleep event loop currently used by scratchattach's cloud requests using either the Condition class of the threading module or by introducing asyncio to the library. This will lower CPU usage.

TimMcCool avatar May 26 '24 19:05 TimMcCool

Great! Hoping for asyncio. Also it would be great to have the simple cloud methods be async/non-blocking.

namtacs avatar May 27 '24 09:05 namtacs

Good ideas! I have just implemented Conditions into my module aswell.

TheCommCraft avatar May 28 '24 17:05 TheCommCraft

You should either make asyncio optional or make it not affect what the user has to code

TheCommCraft avatar May 29 '24 19:05 TheCommCraft

You should either make asyncio optional or make it not affect what the user has to code

It will be optional, I'm trying to avoid breaking changes when possible

TimMcCool avatar May 29 '24 20:05 TimMcCool

So?

TheCommCraft avatar Jul 21 '24 20:07 TheCommCraft

So?

Planned for August 2024

TimMcCool avatar Jul 24 '24 00:07 TimMcCool