15 lines
363 B
Java
15 lines
363 B
Java
|
package eu.siacs.conversations.utils;
|
||
|
|
||
|
public class ReplacingSerialSingleThreadExecutor extends SerialSingleThreadExecutor {
|
||
|
|
||
|
public ReplacingSerialSingleThreadExecutor(boolean prepareLooper) {
|
||
|
super(prepareLooper);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public synchronized void execute(final Runnable r) {
|
||
|
tasks.clear();
|
||
|
super.execute(r);
|
||
|
}
|
||
|
}
|