Skip to content

Commit

Permalink
Fix a bug that awaitAny is used
Browse files Browse the repository at this point in the history
  • Loading branch information
ShreckYe committed Nov 19, 2024
1 parent 210529d commit 3715550
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.huanshankeji.exposed.benchmark

import com.huanshankeji.kotlinx.coroutine.awaitAny
import kotlinx.benchmark.*
import kotlinx.coroutines.*
import org.jetbrains.exposed.sql.Database
Expand Down Expand Up @@ -51,7 +50,7 @@ class TransactionBenchmark : WithContainerizedDatabaseBenchmark() {

@Benchmark
fun _10KSuspendedTransactionAsyncs() = runBlocking {
List(`10K`) { suspendedTransactionAsync(db = database) {} }.awaitAny()
List(`10K`) { suspendedTransactionAsync(db = database) {} }.awaitAll()
}

private fun numProcessors() =
Expand Down

0 comments on commit 3715550

Please sign in to comment.