If a suspend function is handling exceptions, then the whole supervisor scope and job are seemingly not needed. Is this by design?
Examples seem to ignore suspend functions and show supervisor with lambdas. When I try it around a suspend function that handles exceptions, supervisor is not needed.
What do you mean by saying that “If a suspend function is handling exceptions,”? You mean that the function caught exception and handled it? Then of course supervisor is not needed, because errors were handled and coroutines didn’t fail.
Thanks, I can’t recall the issue and I think another discussion covered the issue I was having. Thank you
The confusion was examples showed lambdas when showing supervisorScope. They didn’t show it calling other suspend functions un-launched. I fell into missunderstanding.