File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
package tasks
2
2
3
- import contributors.*
3
+ import contributors.GitHubService
4
+ import contributors.RequestData
5
+ import contributors.User
6
+ import contributors.logRepos
4
7
import kotlinx.coroutines.channels.Channel
5
8
import kotlinx.coroutines.coroutineScope
9
+ import samples.log
6
10
7
11
suspend fun loadContributorsChannels (
8
12
service : GitHubService ,
@@ -19,10 +23,13 @@ suspend fun loadContributorsChannels(
19
23
val channel = Channel <List <User >>()
20
24
21
25
for ((index, repo) in repos.withIndex()) {
26
+ log(" for start" )
22
27
val users = service.getRepoContributors(req.org, repo.name)
23
28
.also { log(" repo: ${repo.name} " ) }
24
29
.bodyList()
30
+ log(" users: ${users} " )
25
31
channel.send(users)
32
+ log(" after channel.send(users)" )
26
33
}
27
34
repeat(repos.size) {
28
35
val users = channel.receive()
You can’t perform that action at this time.
0 commit comments