Add call checker to report error more granulary if possible
This, however, works only for calls of 'synchronized' only. Thus, it does not support inline functions of any kind.
This commit is contained in:
-14
@@ -5,12 +5,6 @@ private val lock = Any()
|
||||
suspend fun suspensionPoint() {}
|
||||
|
||||
fun test() {
|
||||
builder {
|
||||
synchronized(lock) {
|
||||
suspensionPoint()
|
||||
}
|
||||
}
|
||||
|
||||
builder {
|
||||
inlineMe {
|
||||
suspensionPoint()
|
||||
@@ -37,14 +31,6 @@ fun test() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
object : SuspendRunnable {
|
||||
override suspend fun run() {
|
||||
synchronized(lock) {
|
||||
suspensionPoint()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
interface SuspendRunnable {
|
||||
|
||||
Reference in New Issue
Block a user