optionalSingle

suspend fun <T> Flow<T>.optionalSingle(): Optional<T>

Like .single(), but also allows an empty input.