theRealProHacker / Positron

With Positron you can create your own desktop app using just HTML and Python
2 stars 1 forks source link

Asynchronous code runs synchronous code too long #76

Closed theRealProHacker closed 1 year ago

theRealProHacker commented 1 year ago

We are running too much synchronous code in asynchronous functions for asyncios taste.

WARNING:asyncio:Executing <Task pending name='Task-1' coro=<run() running at path_to\Positron\src\positron\main.py:167> cb=[_run_until_complete_cb() at path_to\Python\Python310\lib\asyncio\base_events.py:184] created at path_to\Python\Python310\lib\asyncio\tasks.py:636> took 0.282 seconds

In essence, these warnings mean frame drops (a frame only has $16 ms = 0.016 s$)