23 lines
622 B
Kotlin
23 lines
622 B
Kotlin
import java.util.concurrent.ConcurrentLinkedQueue
|
|
|
|
public object RefreshQueue {
|
|
private val queue = ConcurrentLinkedQueue<List<String>>
|
|
|
|
private val workerThread = Thread(object : Runnable {
|
|
override fun run() {
|
|
while (!workerThread.isInterrupted()) {
|
|
try {
|
|
// synchronized(queue) {
|
|
// queue.wait()
|
|
// }
|
|
} catch (e : InterruptedException) {
|
|
}
|
|
}
|
|
}
|
|
})
|
|
}
|
|
|
|
fun box() : String {
|
|
val t = RefreshQueue.workerThread
|
|
return "OK"
|
|
} |