marstran
12/21/2017, 2:33 PMbuildSequence {
yieldAll(heavySourceA())
yieldAll(heavySourceB())
}.find { it == "MyString" }
heavySourceB
won't be called if find
stops in the list given by heavySourceA
. The buildSequence
coroutine will suspend while iterating over heavySourceA
.