wakingrufus
Dominaezzz
flatMapMerge
doSomething
fun doSomething(): List<Thing> fun s(duration: Duration, n: Int){ flow { val start = Instant.now() (0 until duration.seconds).toList().forEach { tick -> (1..n).toList().map { delay(start.plusMillis(tick).minusMillis(Instant.now().toEpochMilli()).toEpochMilli()) emit(doSomething().asFlow()) } } }.flattenMerge(1000) }
A modern programming language that makes developers happier.