Archived
0

Runnable update

This commit is contained in:
Daniil
2018-08-03 20:09:46 +07:00
parent 4e6f834a7a
commit 969b2bbb44
2 changed files with 11 additions and 2 deletions

View File

@@ -29,5 +29,6 @@ public class ExecutorThread extends Thread {
} finally { } finally {
runnable.unlock(); runnable.unlock();
} }
runnable.after();
} }
} }

View File

@@ -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() {
}
} }