kopia lustrzana https://github.com/ryukoposting/Signal-Android
Give recipient resolves their own thread pool.
rodzic
ef85b29ddf
commit
dc095c9db4
|
@ -55,7 +55,7 @@ public final class LiveRecipientCache {
|
|||
this.warmedUp = new AtomicBoolean(false);
|
||||
this.localRecipientId = new AtomicReference<>(null);
|
||||
this.unknown = new LiveRecipient(context, Recipient.UNKNOWN);
|
||||
this.resolveExecutor = ThreadUtil.trace(new FilteredExecutor(SignalExecutors.BOUNDED, () -> !SignalDatabase.inTransaction()));
|
||||
this.resolveExecutor = ThreadUtil.trace(new FilteredExecutor(SignalExecutors.newCachedBoundedExecutor("signal-recipients", 1, 4, 15), () -> !SignalDatabase.inTransaction()));
|
||||
}
|
||||
|
||||
@AnyThread
|
||||
|
|
Ładowanie…
Reference in New Issue