Home
last modified time | relevance | path

Searched refs:takeWhile (Results 1 – 12 of 12) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/operators/
DTakeWhileTest.kt19 assertEquals(3, flow.takeWhile { true }.sum()) in <lambda>()
20 assertEquals(1, flow.takeWhile { it < 2 }.single()) in <lambda>()
21 assertEquals(2, flow.drop(1).takeWhile { it < 3 }.single()) in <lambda>()
22 assertNull(flow.drop(1).takeWhile { it < 2 }.singleOrNull()) in <lambda>()
27 assertEquals(0, emptyFlow<Int>().takeWhile { true }.sum()) in <lambda>()
28 assertEquals(0, emptyFlow<Int>().takeWhile { false }.sum()) in <lambda>()
45 assertEquals(1, flow.takeWhile { it < 2 }.single()) in <lambda>()
59 }.takeWhile { in <lambda>()
/external/kotlinx.coroutines/ui/kotlinx-coroutines-javafx/test/
DJavaFxObservableAsFlowTest.kt28 val flow = integerProperty.asFlow().takeWhile { j -> j != n } in <lambda>()
55 val flow = integerProperty.asFlow().takeWhile { j -> j != END_MARKER } in <lambda>()
/external/dokka/core/src/main/kotlin/Utilities/
DUri.kt22 …val commonPartsSize = bParts.zip(cParts).takeWhile { (basePart, childPart) -> basePart == childPar… in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/sharing/
DShareInFusionTest.kt52 .takeWhile { it > 0 } in <lambda>()
DShareInBufferTest.kt38 .takeWhile { i -> i >= 0 } // until done in <lambda>()
DShareInConflationTest.kt35 .takeWhile { i -> i >= 0 } in <lambda>()
DShareInTest.kt68 .takeWhile { it != "DONE" } in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/flow/operators/
DLimit.kt83 public fun <T> Flow<T>.takeWhile(predicate: suspend (T) -> Boolean): Flow<T> = flow { in <lambda>() method
/external/dokka/core/src/main/kotlin/Samples/
DDefaultSampleProcessingService.kt47 …val indent = lines.filter(String::isNotBlank).map { it.takeWhile(Char::isWhitespace).count() }.min… in resolveSample()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/channels/
DChannels.common.kt1010 public fun <E> ReceiveChannel<E>.takeWhile(context: CoroutineContext = Dispatchers.Unconfined, pred… in takeWhile() method
1012 for (e in this@takeWhile) { in takeWhile()
/external/dokka/core/src/main/kotlin/Formats/
DDacHtmlFormat.kt863 …(elements.takeWhile { !containsDot(it) } + elements.firstOrNull { containsDot(it) }?.firstSentence… in firstSentenceOfSummary()
/external/kotlinx.coroutines/kotlinx-coroutines-core/api/
Dkotlinx-coroutines-core.api732 …public static final fun takeWhile (Lkotlinx/coroutines/channels/ReceiveChannel;Lkotlin/coroutines/…
733 …public static synthetic fun takeWhile$default (Lkotlinx/coroutines/channels/ReceiveChannel;Lkotlin…
1041 …public static final fun takeWhile (Lkotlinx/coroutines/flow/Flow;Lkotlin/jvm/functions/Function2;)…