title: Kotlin cancel coroutine in runBlocking()
body: <p>How can I do like that? I need continue work chunk code when job did stop. For example. I've code:</p>
  <pre><code>private fun method() {
      val a = viewModelScope.launch(Dispatchers.IO) {
         test()
      }
  }
  
  private test() = runBlocking {
      while(isActive) {
        log(&quot;Begin work&quot;)
        log(&quot;JOB &quot;a&quot; in method() did cancel!&quot;)
        log(&quot;BUT! Here executing more...&quot;)
        log(&quot;Now. When end loop and second check expression isActive it must be FALSE&quot;)
      }
  }
  </code></pre>