Package org.drasyl.util
Interface ThrowingRunnable<E extends Exception>
-
- Type Parameters:
E
- the type of the thrown checked exception
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ThrowingRunnable<E extends Exception>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
run()
When an object implementing interfaceRunnable
is used to create a thread, starting the thread causes the object'srun
method to be called in that separately executing thread.
-
-
-
Method Detail
-
run
void run() throws E extends Exception
When an object implementing interfaceRunnable
is used to create a thread, starting the thread causes the object'srun
method to be called in that separately executing thread.The general contract of the method
run
is that it may take any action whatsoever.- Throws:
E extends Exception
- See Also:
Thread.run()
-
-