You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Executors.newSingleThreadExecutor().asCoroutineDispatcher() is used as CorotuineDisaptcher in Kolin online playground , hardly success . ( But very occasionally successful.)
I encounted Evaluation stopped while it's taking too long️ error message.
importkotlinx.coroutines.*importjava.util.concurrent.Executorsfunmain(){
val dispatcher =Executors.newSingleThreadExecutor().asCoroutineDispatcher()
val scope =CoroutineScope(Job()+dispatcher)
scope.launch {
println("1")
}
println("2")
}
I tried
Kotlin version v1.4.30 / v1.5.31 / v1.6.21
with all for JVM
but get same result.
As a side note
When I Executors.newSingleThreadExecutor().asCoroutineDispatcher() replace with newSingleThreadContext(name: String) and run , always get success and following result message : 1 2.
Execution Environment :
PC :
Edition Windows 10 Home
Version 21H2
Install on 2022/01/04
OS build 19044.1645
Experience Windows Feature Experience Pack 120.2212.4170.0
Browser :
Google Chrome version : 100.0.4896.127(Official Build) (64 bit)
(・ Country : Japan)
Thank you.
The text was updated successfully, but these errors were encountered:
When
Executors.newSingleThreadExecutor().asCoroutineDispatcher()
is used as CorotuineDisaptcher in Kolin online playground , hardly success . ( But very occasionally successful.)I encounted
Evaluation stopped while it's taking too long️
error message.code run
Code is following
I tried
v1.4.30
/v1.5.31
/v1.6.21
but get same result.
As a side note
When I
Executors.newSingleThreadExecutor().asCoroutineDispatcher()
replace withnewSingleThreadContext(name: String)
and run , always get success and following result message :1 2
.Execution Environment :
PC :
Edition Windows 10 Home
Version 21H2
Install on 2022/01/04
OS build 19044.1645
Experience Windows Feature Experience Pack 120.2212.4170.0
Browser :
Google Chrome version : 100.0.4896.127(Official Build) (64 bit)
(・ Country : Japan)
Thank you.
The text was updated successfully, but these errors were encountered: