Change batch identity check timing behavior.

This commit is contained in:
Cody Henthorne
2022-08-01 13:18:20 -04:00
committed by Greyson Parrelli
parent dc04c8ed98
commit c2b5407911
9 changed files with 38 additions and 18 deletions

View File

@@ -2,6 +2,7 @@
package org.signal.core.util.concurrent
import android.annotation.SuppressLint
import io.reactivex.rxjava3.core.Single
import java.lang.RuntimeException
@@ -11,6 +12,7 @@ import java.lang.RuntimeException
*
* [Single.blockingGet] is considered harmful and should not be used.
*/
@SuppressLint("UnsafeBlockingGet")
@Throws(InterruptedException::class)
fun <T : Any> Single<T>.safeBlockingGet(): T {
try {