title: Using viewmodelScope launch with lifecycle transformations
body: <p>I am using the following versions in my project -</p>
  
  <pre><code>implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0-alpha04"
  implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.2.0-alpha04"
  </code></pre>
  
  <p>So in my View Model class, I do - </p>
  
  <pre><code>fun initView() =
          Transformations.map(domain.performOperation()) {
              when (it) {
                  ...
              }
          }
  </code></pre>
  
  <p>My View Model class extends Base View Model class and the Base View Model class looks like this - </p>
  
  <pre><code>open class BaseViewModel(private val coroutineCtx: CoroutineContext = Dispatchers.Main) :
      ViewModel(),
      CoroutineScope {
  
      private val job = SupervisorJob()
  
      override val coroutineContext: CoroutineContext
          get() = coroutineCtx + job
  
      override fun onCleared() {
          super.onCleared()
          job.cancel()
      }
  }
  </code></pre>
  
  <p>This seems to work but I want to improvise my code and get rid of the boilerplate coroutine code in Base View Model class. So I want to use <code>viewModelScope.launch</code> directly in My View Model class. But how do I use it with <code>Transformations.map</code>?</p>