We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f678ed commit da31eaeCopy full SHA for da31eae
src/contributors/Contributors.kt
@@ -79,11 +79,9 @@ interface Contributors: CoroutineScope {
79
}.setUpCancellation()
80
}
81
CONCURRENT -> { // Performing requests concurrently
82
- launch(Dispatchers.Default) {
+ launch {
83
val users = loadContributorsConcurrent(service, req)
84
- withContext(Dispatchers.Main) {
85
- updateResults(users, startTime)
86
- }
+ updateResults(users, startTime)
87
88
89
NOT_CANCELLABLE -> { // Performing requests in a non-cancellable way
0 commit comments