Leo N
Nov 15, 2024

--

Hi Omar, thanks for your question. There is only supervisorScope can do that, I believe we can consider to use supervisorScope when we want to run multiple concurrent tasks but don't want the failure of one tasks to cancel all others. If we are really want to use viewModelScope has that behavior also, we can consider to apply UncaughtExceptionHandler for it. More detail please check "Uncaught Exceptions in viewModelScope".

--

--

Leo N
Leo N

Written by Leo N

🇻🇳 🇸🇬 🇲🇾 🇦🇺 🇹🇭 Engineer @ GXS Bank, Singapore | MSc 🎓 | Technical Writer . https://github.com/nphausg

No responses yet