ANDROID_LIVE Telegram 1020
Flow-опрос #1
#квиз

Что будет в результате выполнения этого Flow?

import kotlinx.coroutines.*
import kotlinx.coroutines.flow.*

val scope = CoroutineScope(Dispatchers.Default)

val producer = flowOf("a", "b")
.onEach { println("0:$it") }

fun main() {
scope.launch {
producer.collect { println("1:$it") }
}
scope.launch {
producer.collect { println("2:$it") }
}
}
👍26🤮5🤔4👎2



tgoop.com/android_live/1020
Create:
Last Update:

Flow-опрос #1
#квиз

Что будет в результате выполнения этого Flow?


import kotlinx.coroutines.*
import kotlinx.coroutines.flow.*

val scope = CoroutineScope(Dispatchers.Default)

val producer = flowOf("a", "b")
.onEach { println("0:$it") }

fun main() {
scope.launch {
producer.collect { println("1:$it") }
}
scope.launch {
producer.collect { println("2:$it") }
}
}

BY Android Live 🤖


Share with your friend now:
tgoop.com/android_live/1020

View MORE
Open in Telegram


Telegram News

Date: |

Telegram channels fall into two types: Hashtags Step-by-step tutorial on desktop: You can invite up to 200 people from your contacts to join your channel as the next step. Select the users you want to add and click “Invite.” You can skip this step altogether. To view your bio, click the Menu icon and select “View channel info.”
from us


Telegram Android Live 🤖
FROM American