Skip to content

Latest commit

 

History

History

coroutines

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

coroutines

Extensions regarding kotlinx.coroutines and suspend functions

Examples

ParallelMap

suspend fun main() {
    listOf(1, 2, 3).parallelMap(maxConcurrentRequests = 2) {
        suspendingHttlCall(it)
    }
}

SuspendLazy

val pi by suspendLazy { superAwkwardWayToFetchPi() }

suspend fun main() {
    println(pi())
}

Download

Please refer to this page

Documentation

Documentation can be found here