title: Kotlin Coroutines with returning value
body: <p>I want to create a coroutine method which has returning value.</p>
  
  <p>For example)</p>
  
  <pre><code>fun funA() = async(CommonPool) {
      return 1
  }
  
  fun funB() = async(CommonPool) {
      return 2
  }
  
  fun sum() {
      launch {
          val total = funA().await() + funB().await()
      }
  }
  </code></pre>
  
  <p>If I want to return total in sum method, how should I do?</p>
  
  <p>like,</p>
  
  <pre><code>fun sum(): Int {
      launch {
          val total = funA().await() + funB().await()
      }   
  
      return total
  }
  </code></pre>