Can someone confirm my understadning of Flow.singl...
# coroutines
e
Can someone confirm my understadning of Flow.single() vs Flow.first()? I've read the documentation first, single, + this stackoverflow, and just trying to apply what ive learned • A) If i use
flowOf(1, 2, 3).single()
im gonna assume that throws IllegalStateException • B) if i use
flowOf(1, 2, 3).first()
that will return 1 • C) if i use
flowOf().first()
or
flowOf().single()
they both throw NoSuchElementException Is that interpretation right?
👌 9