feat: add call related permissions and more network handover tests

This commit is contained in:
Harris
2021-11-17 12:51:15 +11:00
parent bf74483b9f
commit 98a50cbf69
12 changed files with 118 additions and 42 deletions

View File

@@ -4,7 +4,7 @@ import nl.komponents.kovenant.Promise
import nl.komponents.kovenant.deferred
import java.util.*
fun <V, T : Promise<V, Exception>> retryIfNeeded(maxRetryCount: Int, retryInterval: Long = 1 * 1000, body: () -> T): Promise<V, Exception> {
fun <V, T : Promise<V, Exception>> retryIfNeeded(maxRetryCount: Int, retryInterval: Long = 1000L, body: () -> T): Promise<V, Exception> {
var retryCount = 0
val deferred = deferred<V, Exception>()
val thread = Thread.currentThread()