OK ... Thanks. And If you ask ChatGPT you get a very good explanation with code examples showing the difference in Compose code which makes it very clear!
@dineshrandy92465 ай бұрын
Wow, thanks a lot! Your information take me to the next level.
@youtubebillwebhome4 ай бұрын
Thank u Philipp ❤
@malandev5 ай бұрын
Thank you ❤
@PostMeridianLyf Жыл бұрын
Love it! Thanks
@OmerFarukUcer11 ай бұрын
I would like to work with you as an intern :D
@triton6771 Жыл бұрын
If however I want to run a computation when the onStop of a fragment is called, what do I use?
@PhilippLackner Жыл бұрын
Depends on the computation and if it's bound to the screen or not
@pritishsahoo5467 Жыл бұрын
well, I need to download something independent on any activity and it should continue to download even if you switch activities. So in this case what should I use?
@PhilippLackner Жыл бұрын
Coroutine scope
@mhmdawad001 Жыл бұрын
But what if i added a job inside globalScope context and cancle it anytime isn't work?
@PhilippLackner Жыл бұрын
Works, but that's independent of what a coroutine scope is used for
@ahmadprogrammer1367 ай бұрын
Please coulde you add a translation for your videos for arabic please
@alsh2887 Жыл бұрын
What if I'm writing something to local DB and want to be sure that the data will be written if the user decides to exit application? Should I use GlobalScope or CoroutineScope with dispather IO?
@thebigboi5357 Жыл бұрын
WorkManager might be your solution
@firstnamelastname-oy7es11 ай бұрын
Could you put a global boolean called "writing data" and then when you launch a data writing co-routine, set it to true, and when your co-routine is done writing data, have it set the boolean to false and cancel it? Then over ride on pause/on destroy so they enter a busy while-loop checking for writing data == false, and when it does equal false, finish up destruction and call super destroy. That way when the user closes the app, the app will hang until data has been finished writing.
@airflow.777 Жыл бұрын
Can't we cancel global scope from inside when job is done?
@PhilippLackner Жыл бұрын
You can cancel the job but not the scope
@airflow.777 Жыл бұрын
@@PhilippLackner understood, thank you Philip
@abbasalidaruwala Жыл бұрын
what if globalscope is used inside viewmodel?
@mouzinu Жыл бұрын
It is still a global scope
@Danc243 Жыл бұрын
Does Coroutine Scope cancels itself when the code block is finished ?
@PhilippLackner Жыл бұрын
The job is finished, but a scope needs to be canceled by you
@zakariajawas Жыл бұрын
@@PhilippLackner Same question but for GlobalScope, does it get canceled when the code is finished?