Skip to content

Non Cancellable job

Devrath edited this page Jan 14, 2024 · 4 revisions

167c71003c866270c33b1876694bba01

Background

  • Sometimes say when we have launched multiple co-routines in scope and say some are completed and some are not completed
  • Now the user invokes cancel of root scope.
  • In this scenario, We want the complete execution of all co-routines in the root scope or none should be executed in the root scope, In such scenarios, We can use a non-cancellable job.
Clone this wiki locally