Extensions regarding kotlinx.coroutines and suspend functions
suspend fun main() {
listOf(1, 2, 3).parallelMap(maxConcurrentRequests = 2) {
suspendingHttlCall(it)
}
}
val pi by suspendLazy { superAwkwardWayToFetchPi() }
suspend fun main() {
println(pi())
}
Please refer to this page
Documentation can be found here