Skip to content

Commit

Permalink
reapply threading patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxcapades committed Apr 19, 2024
1 parent 01c9c50 commit 4e31c35
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ class WorkerPool(
fun start() {
log.info("starting worker pool $name with queue size $jobQueueSize and worker count $workerCount")

// runBlocking(Dispatchers.IO) {
runBlocking {
runBlocking(Dispatchers.IO) {
repeat(workerCount) { i ->
val j = i + 1
launch (CoroutineThreadContext(contextData = ThreadContextData(map = mapOf("workerID" to "$name-$j"), Stack()))) {
Expand Down

0 comments on commit 4e31c35

Please sign in to comment.