Claus1 / unigui

Universal GUI Framework and Protocol (Python)
MIT License
76 stars 4 forks source link

[Windows] Messages from user.progress(...) and other unigui services do not come in time. #8

Closed Claus1 closed 1 year ago

Claus1 commented 1 year ago

The server sends some messages using second thread because of asyncio limitations.

def sync_send(self, obj):
        asyncio.run_coroutine_threadsafe(self.send(obj), self.extra_loop)

It works in linux but fails in windows. asyncio does not have normal, working api for forcing flush of the message queue or executing postponed coroutines. Still looking for fixing.

Claus1 commented 1 year ago

patched and fixed at https://github.com/Claus1/unigui/commit/e1ef7eb3d5be104cf76998af328ffb6a63f64e47