consumeAsFlow

fun <T : Any> ReceiveChannel<T>.consumeAsFlow(): Flow<T>