mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-11 18:29:05 +01:00
Fixed delay is easier to reconcile with sleeps than fixed rate.
This commit is contained in:
@@ -95,16 +95,6 @@ class AndroidTaskScheduler implements TaskScheduler, Service, AlarmListener {
|
||||
return s;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Future<?> scheduleAtFixedRate(Runnable task, long delay,
|
||||
long interval, TimeUnit unit) {
|
||||
Runnable wrapped = () -> {
|
||||
scheduleAtFixedRate(task, interval, interval, unit);
|
||||
task.run();
|
||||
};
|
||||
return schedule(wrapped, delay, unit);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Future<?> scheduleWithFixedDelay(Runnable task, long delay,
|
||||
long interval, TimeUnit unit) {
|
||||
|
||||
Reference in New Issue
Block a user