D
Size: a a a
D
D
A
RI
interface Main {
suspend fun doWork(arg: String): String
}
class ProxyMain : Main {
private val mutex = Mutex(true)
private var main: Main by notNull()
suspend fun setInitial(newMain: Main) {
main = newMain
mutex.unlock()
}
suspend fun setNext(newMain: Main) {
mutex.withLock {
main = newMain
}
}
override suspend fun doWork(arg: String): String {
return mutex.withLock {
main.doWork(arg)
}
}
}
RI
A
interface Main {
suspend fun doWork(arg: String): String
}
class ProxyMain : Main {
private val mutex = Mutex(true)
private var main: Main by notNull()
suspend fun setInitial(newMain: Main) {
main = newMain
mutex.unlock()
}
suspend fun setNext(newMain: Main) {
mutex.withLock {
main = newMain
}
}
override suspend fun doWork(arg: String): String {
return mutex.withLock {
main.doWork(arg)
}
}
}
AR
AR
AL
AR
@JsonProperty("is_pre_approved")
val isPreApproved: Boolean = true
AL
@JsonProperty("is_pre_approved")
val isPreApproved: Boolean = true
AL
AR
RI
RI
AR
@get:JsonProperty("is_pre_approved")
val isPreApproved: Boolean = true
AR
AL
AL
AR