mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am b21edc44: Shuwdown executors after executing all tasks.
* commit 'b21edc44026bac1a41cbf01aa4476c5cdf2a1812': Shuwdown executors after executing all tasks.
This commit is contained in:
commit
1298fe4f38
@ -47,9 +47,14 @@ public class ExecutorUtils {
|
||||
public static void shutdownAllExecutors() {
|
||||
synchronized(sExecutorMap) {
|
||||
for (final PrioritizedSerialExecutor executor : sExecutorMap.values()) {
|
||||
executor.execute(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
executor.shutdown();
|
||||
sExecutorMap.remove(executor);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user