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?
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.