I made interactive diagrams of Kotlinx.coroutines ...
# feed
k
I made interactive diagrams of Kotlinx.coroutines Flow operators coroutine https://terrakok.github.io/FlowMarbles/
❤️ 4
👏 1
🎉 29
p
Maybe because I am visiting from Android but where is interactive part of it? I don't see any animation at all
k
try to move input events
p
I see 👍
t
Love it, this will become real handy for onboarding team members who are new to kotlin!
💯 1
v
Color-only differences are not very accessible. See https://en.m.wikipedia.org/wiki/Congenital_red–green_color_blindness which says 2-9% males are affected. Shapes and fill types are better when it comes to the accessibility
k
You are right. I'll fix it soon
j
There seems to be a problem with
transform
I think, the output in my screenshot should be
Yellow(0), Green(0), Yellow(1), Green(1), Yellow(2), Green(2)
k
No. That's why I made this app) The app is correct
Of course, if I didn't make a bug here. But I don't think so
j
testing this code in kotlin playground gives me my result though
Copy code
flowOf(0,1,2).transform {
    emit("Yellow($it)")
    delay(100)
    emit("Green($it)")
}
.collect {
    println(it)
}

// output
Yellow(0)
Green(0)
Yellow(1)
Green(1)
Yellow(2)
Green(2)
k
I'll check later. Thank you for your attention! ❤️
Fixed
j
nice, very cool tool ❤️