add waitCommands* expectations

This commit is contained in:
InsanusMokrassar committed 2022-08-24 15:03:54 +06:00
1 parent fff05a40d9
commit 9ea06de27c
5 files changed
+142 -2

No files matched your search

@@ -30,7 +30,7 @@ fun <T> Flow<Iterable<T>>.flatten(): Flow<T> = flow {
}
}
fun <T, R> Flow<T>.flatMap(mapper: (T) -> Iterable<R>): Flow<R> = flow {
fun <T, R> Flow<T>.flatMap(mapper: suspend (T) -> Iterable<R>): Flow<R> = flow {
collect {
mapper(it).forEach {
emit(it)