-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add coroutine tests from deadlock test repo #531
base: develop
Are you sure you want to change the base?
Conversation
0545b97
to
ee44ac6
Compare
c663b27
to
39a9599
Compare
@dmitrii-artuhov please rebase on develop |
ee50938
to
4d5de12
Compare
handler.sendToChannel2() | ||
} | ||
|
||
class RunChecker901 : BaseRunCoroutineTests(true) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's rename to something like CoroutineTestXX
, with numeration starting from 01
.
lateinit var pool: ExecutorCoroutineDispatcher | ||
} | ||
override fun block() { | ||
pool = Executors.newFixedThreadPool(4).asCoroutineDispatcher() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Executors.newFixedThreadPool(4).asCoroutineDispatcher().use { pool ->
...
}
to.close() | ||
} | ||
|
||
fun main(): Unit = runBlocking(pool) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's check that if runBlocking
takes pool
as coroutine context, then it should be automatically propogated to launch
.
4d5de12
to
603b354
Compare
…e linearizability subsystem naming
6338f56
to
1ca09f7
Compare
Closes #492