Solutions
Multiplatform
Server-side
Data science
Android
Case studies
Docs
Language guide
Multiplatform development
API
APIs overview
Standard library (stdlib)
Test library (kotlin.test)
Coroutines (kotlinx.coroutines)
Serialization (kotlinx.serialization)
Kotlin I/O library (kotlinx-io)
Date and time (kotlinx-datetime)
JVM Metadata (kotlin-metadata-jvm)
Kotlin Gradle plugins
Ktor
Compose Multiplatform Material3
Community
Teach
Play
Playground
Koans
kotlinx.coroutines
Toggle table of contents
1.10.2
common
Platform filter
common
Switch theme
Search in API
kotlinx.coroutines
kotlinx-coroutines-core
/
kotlinx.coroutines.flow
/
filterNotNull
filter
Not
Null
fun
<
T
:
Any
>
Flow
<
T
?
>
.
filterNotNull
(
)
:
Flow
<
T
>
(
source
)
Returns a flow containing only values of the original flow that are not null.