mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-26 22:38:00 +01:00
Delete unused Later class
This commit is contained in:
parent
cf132b8bcc
commit
1b8333e130
1 changed files with 0 additions and 29 deletions
|
@ -1,29 +0,0 @@
|
||||||
package com.voxelmodpack.hdskins;
|
|
||||||
|
|
||||||
public final class Later extends Thread {
|
|
||||||
|
|
||||||
private final int delay;
|
|
||||||
|
|
||||||
protected Later(int delay, Runnable runnable) {
|
|
||||||
super(runnable);
|
|
||||||
this.delay = delay;
|
|
||||||
setDaemon(true);
|
|
||||||
setName("Later#" + getId());
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void performLater(int delay, Runnable callable) {
|
|
||||||
new Later(delay, callable).start();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void performNow(Runnable callable) {
|
|
||||||
new Later(0, callable).start();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
try {
|
|
||||||
if (delay > 0) sleep(delay);
|
|
||||||
} catch (InterruptedException e) {}
|
|
||||||
super.run();
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue