mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-10-29 07:53:04 +00:00
add waitCommands* expectations
This commit is contained in:
1 parent
fff05a40d9
commit
9ea06de27c
5 files changed
+142
-2
No files matched your search
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user