Created
March 9, 2024 12:48
-
-
Save thedroiddiv/f9bcf0b4137f45421c28c0375b2156b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
suspend fun getChatUsers(userIds: List<String>): List<ChatUser> { | |
return userIds.map { userId -> | |
async { | |
getUserById(userId) | |
} | |
}.awaitAll() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment