why can i run a while(true) in the applicationWillTerminate Method in the AppDelegate and it doesn't stop after five seconds?
I printed a log to the console and the loop is still running after a minute..
In Apples Documentation it sounds like after five seconds the Process is killed. Btw my phone was broken after this, i needed to do a hard reset.
Thanks, im just curious
The documentation says:
If the method does not return before time expires the system may kill the process altogether
The documentation says that approximately 5 seconds is the guaranteed time in which your app won't get killed.
I am pretty sure the app will be terminated sooner or later because iOS have background processes that make sure of it.
Infinite loops without pauses eat up CPU and its very difficult for any operating system to recover from them.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With