From 3715550f6f5dfda78678a33e7008b67d6253d53b Mon Sep 17 00:00:00 2001 From: Yongshun Shreck Ye Date: Wed, 20 Nov 2024 05:51:22 +0800 Subject: [PATCH] Fix a bug that `awaitAny` is used --- .../com/huanshankeji/exposed/benchmark/TransactionBenchmark.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/integrated/src/benchmarks/kotlin/com/huanshankeji/exposed/benchmark/TransactionBenchmark.kt b/integrated/src/benchmarks/kotlin/com/huanshankeji/exposed/benchmark/TransactionBenchmark.kt index cf9c0bd..82303b8 100644 --- a/integrated/src/benchmarks/kotlin/com/huanshankeji/exposed/benchmark/TransactionBenchmark.kt +++ b/integrated/src/benchmarks/kotlin/com/huanshankeji/exposed/benchmark/TransactionBenchmark.kt @@ -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 @@ -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() =