-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.9.0-RC test task:compileDemoDebugUnitTestKotlin error Suspension functions can only be called within coroutine body. #4179
Labels
Comments
` suspend fun asynchronousBatchProcessing(
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I won't encounter this issue when using version 1.8.1
` @test
fun concurrentExecution1() = runTest {
` private suspend fun getDataDelayedTime(delayedTime: Long, index: Int): Result {
println("第${index} 睡眠时长=${delayedTime}")
delay(delayedTime)
println(
"第${index}项完成->${DateUtil.testNowTimeString},thread.name=${Thread.currentThread().name},thread.id=${Thread.currentThread().id},返回结果=${
index.mod(
7
) != 0
}"
)
`
The text was updated successfully, but these errors were encountered: