mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 02:10:44 +01:00
Increase parallelization of attachment archive uploads.
This commit is contained in:
@@ -275,6 +275,17 @@ public class JobManager implements ConstraintObserver.Notifier {
|
||||
runOnExecutor(() -> jobController.cancelAllInQueue(queue));
|
||||
}
|
||||
|
||||
/**
|
||||
* Cancels all jobs in the specified queues. See {@link #cancel(String)} for details.
|
||||
*/
|
||||
public void cancelAllInQueues(@NonNull Collection<String> queues) {
|
||||
runOnExecutor(() -> {
|
||||
for (String queue : queues) {
|
||||
jobController.cancelAllInQueue(queue);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Perform an arbitrary update on enqueued jobs. Will not apply to jobs that are already running.
|
||||
* You shouldn't use this if you can help it. You give yourself an opportunity to really screw
|
||||
|
||||
Reference in New Issue
Block a user