Runnable update
This commit is contained in:
@@ -29,5 +29,6 @@ public class ExecutorThread extends Thread {
|
|||||||
} finally {
|
} finally {
|
||||||
runnable.unlock();
|
runnable.unlock();
|
||||||
}
|
}
|
||||||
|
runnable.after();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,15 @@
|
|||||||
package mc.core.events.v3.runner;
|
package mc.core.events.v3.runner;
|
||||||
|
|
||||||
public interface ResourceRunnable extends Runnable {
|
public interface ResourceRunnable extends Runnable {
|
||||||
void lock();
|
default void lock() {
|
||||||
|
|
||||||
void unlock();
|
}
|
||||||
|
|
||||||
|
default void unlock() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
default void after() {
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user