mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-27 06:29:54 +00:00
Change batch identity check timing behavior.
This commit is contained in:
committed by
Greyson Parrelli
parent
dc04c8ed98
commit
c2b5407911
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user