Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 637 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 637 Bytes

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