Open baseplate-admin opened 1 month ago
So, as it stands. If i do something computationally expensive in a thread, it locks the main thread and thus the app freezes.
https://github.com/coreproject-moe/CoreProject/tree/1a5eb12b15327bcc31e160d2985f07766b54538d/seeder
Problematic code
def did_mount(self): self.page.run_task(self.fetch_all_people) async def fetch_all_people(self): builder = StaffBuilder() dictionary = builder.build_dictionary(sort=True) async with self.session() as _session: for i in dictionary: db_obs = Staff(mal_id=i) _session.add(db_obs) await _session.commit()
Source
The Application should not freeze up
https://github.com/user-attachments/assets/1e3bf345-736d-440d-bd91-ab0bad8f43f1
macOS
Windows 11
0.23.2
No, it isn't
i think this could be because of either
None
Hi, do you think flet should include support for multiproceesing? Preferably via dart coroutines
Duplicate Check
Describe the bug
So, as it stands. If i do something computationally expensive in a thread, it locks the main thread and thus the app freezes.
Code sample
https://github.com/coreproject-moe/CoreProject/tree/1a5eb12b15327bcc31e160d2985f07766b54538d/seeder
Problematic code
Source
To reproduce
Expected behavior
The Application should not freeze up
Screenshots / Videos
https://github.com/user-attachments/assets/1e3bf345-736d-440d-bd91-ab0bad8f43f1
Operating System
macOS
Operating system details
Windows 11
Flet version
0.23.2
Regression
No, it isn't
Suggestions
i think this could be because of either
Logs
None
Additional details
None