title: how to pass suspend function as explicit parameter to coroutine builder?
body: <p>I'm looking into <code>launch</code> coroutine builder which takes coroutine code as <code>block: suspend CoroutineScope.() -&gt; Unit</code>. We usually pass the code as lambda. However, I was wondering how to pass this function as explicit parameter to launch function.</p>
  
  <pre><code>coroutineScope {
      launch(block = ::myFunction)
  }
  
  suspend fun CoroutineScope.myFunction(): Unit {
      // coroutine code
  }
  </code></pre>
  
  <p>It gives following error</p>
  
  <pre><code>Type mismatch.
  Required:
  suspend CoroutineScope.() → Unit
  Found:
  KSuspendFunction0&lt;Unit&gt;
  </code></pre>
  
  <p>What is it that i'm missing?</p>