asFlow

fun <T> Stream<T>.asFlow(): Flow<T>

Converts the Stream into a Flow