Lines Matching full:produce
20 fun CoroutineScope.fizz() = produce<String> {
31 fun CoroutineScope.buzz() = produce<String> {
45 select<Unit> { // <Unit> means that this select expression does not produce any result
65 fun CoroutineScope.fizz() = produce<String> {
72 fun CoroutineScope.buzz() = produce<String> {
80 select<Unit> { // <Unit> means that this select expression does not produce any result
183 val a = produce<String> {
186 val b = produce<String> {
236 fun CoroutineScope.produceNumbers(side: SendChannel<Int>) = produce<Int> {
237 for (num in 1..10) { // produce 10 numbers from 1 to 10
256 fun CoroutineScope.produceNumbers(side: SendChannel<Int>) = produce<Int> {
257 for (num in 1..10) { // produce 10 numbers from 1 to 10
387 fun CoroutineScope.switchMapDeferreds(input: ReceiveChannel<Deferred<String>>) = produce<String> {
428 fun CoroutineScope.switchMapDeferreds(input: ReceiveChannel<Deferred<String>>) = produce<String> {
464 delay(100) // not enough time to produce slow