Would it be posible to include: ``` suspend fun &l...
# coroutines
e
Would it be posible to include:
Copy code
suspend fun <T> Flow<T>.first() = take(1).single()
In the flow API?
i
first() already exists in 1.3.0-RC2
the implementation
e
Thank you, for some reason I didn't check the RCs
With this implementation this will not work with
flows
that accept nullable values, right?
i
yeah, should work
No problems here
e
I see, I just read
NULL
as
null
and it confused me while reading the code. Thank you
b
maybe they should rename that constant to UNDEFINED 😆
i
That would be a good idea 😂