how to pass suspend function as parameter to another function? Kotlin Coroutines : <p>I want to send suspending function as a parameter, but it shows " Modifier 'suspend' is not applicable to 'value parameter" . how to do it?</p>

<pre><code>fun MyModel.onBG(suspend bar: () -&gt; Unit) {
  launch {
    withContext(Dispatchers.IO) {
        bar()
    }

  }
}
</code></pre>
