netsistemas Active Member Licensed User Longtime User Jan 31, 2023 #1 After making some changes to my app: using a unique database connection class and including asynchronous calls along with wait for, I see that my app now consumes a lot of battery. What will be the cause? Maybe my code stays in some wait for indefinitely consuming battery?
After making some changes to my app: using a unique database connection class and including asynchronous calls along with wait for, I see that my app now consumes a lot of battery. What will be the cause? Maybe my code stays in some wait for indefinitely consuming battery?
Erel B4X founder Staff member Licensed User Longtime User Feb 1, 2023 #2 Wait For doesn't consume any battery. It doesn't actively waits for anything. It stores the sub state and when the relevant event is raised it is resumed. Upvote 0
Wait For doesn't consume any battery. It doesn't actively waits for anything. It stores the sub state and when the relevant event is raised it is resumed.