Settingdust
12/17/2023, 7:19 AMlaunch
it won't block the main thread, the connect complete event may be before the database reading is complete.
I can add a lock in pre-connect event and wait it in complete event. How can I use coroutine to achieve this?xoangon
12/17/2023, 9:40 AMMutex::withLock
Settingdust
12/17/2023, 10:00 AMxoangon
12/17/2023, 10:23 AMSettingdust
12/17/2023, 10:51 AM