# SupervisorScope and job are unneeded when suspend fun catches exceptions

**URL:** <https://discuss.kotlinlang.org/t/supervisorscope-and-job-are-unneeded-when-suspend-fun-catches-exceptions/24088>\
**Category:** Support\
**Created:** [January 31, 2022, 9:12pm UTC](https://discuss.kotlinlang.org/t/supervisorscope-and-job-are-unneeded-when-suspend-fun-catches-exceptions/24088 "2022-01-31T21:12:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![john.pywtorak](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/john.pywtorak/32/8977_2.png) [@john.pywtorak](https://discuss.kotlinlang.org/u/john.pywtorak)\
**Post date:** [January 31, 2022, 9:12pm UTC](https://discuss.kotlinlang.org/t/supervisorscope-and-job-are-unneeded-when-suspend-fun-catches-exceptions/24088/1 "2022-01-31T21:12:51Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![broot](https://avatars.discourse-cdn.com/v4/letter/b/a88e57/32.png) [@broot](https://discuss.kotlinlang.org/u/broot)\
**Post date:** [January 31, 2022, 11:08pm UTC](https://discuss.kotlinlang.org/t/supervisorscope-and-job-are-unneeded-when-suspend-fun-catches-exceptions/24088/2 "2022-01-31T23:08:48Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![john.pywtorak](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/john.pywtorak/32/8977_2.png) [@john.pywtorak](https://discuss.kotlinlang.org/u/john.pywtorak)\
**Post date:** [February 9, 2022, 11:45pm UTC](https://discuss.kotlinlang.org/t/supervisorscope-and-job-are-unneeded-when-suspend-fun-catches-exceptions/24088/3 "2022-02-09T23:45:21Z")

</div>

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.
