API parameter clarification

This commit is contained in:
Robinson 2023-10-19 23:42:36 +02:00
parent 83a9a5762d
commit d40c080311
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C
1 changed files with 2 additions and 2 deletions

View File

@ -70,13 +70,13 @@ data class ResponseWaiter(val id: Int) {
/**
* Waits a specific amount of time until another thread invokes "doNotify"
*/
fun doWait(timeout: Long): Boolean {
fun doWait(timeoutMs: Long): Boolean {
return try {
lock.withLock {
if (signalled) {
true
} else {
condition.await(timeout, TimeUnit.MILLISECONDS)
condition.await(timeoutMs, TimeUnit.MILLISECONDS)
}
}
} catch (ignored: Throwable) {