Class EDTRunnableFuture<V>
java.lang.Object
VASSAL.tools.concurrent.SimpleFuture<V>
VASSAL.tools.concurrent.SimpleRunnableFuture<V>
VASSAL.tools.swing.EDTRunnableFuture<V>
- Type Parameters:
V- the result type returned by the method
- All Implemented Interfaces:
Runnable, Future<V>, RunnableFuture<V>, SettableFuture<V>, SettableRunnableFuture<V>
A {link RunnableFuture} for use on the Event Dispatch Thread.
- Since:
- 3.2.0
- Author:
- Joel Uckelman
-
Nested Class Summary
Nested classes/interfaces inherited from interface Future
Future.State -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a {link RunnableFuture} which will be run on the Event Dispatch Thread.EDTRunnableFuture(V result) Creates a {link RunnableFuture} which will be run on the Event Dispatch Thread. -
Method Summary
Methods inherited from class SimpleFuture
cancel, get, get, isCancelled, isDone, set, setExceptionModifier and TypeMethodDescriptionbooleancancel(boolean mayInterruptIfRunning) get()booleanbooleanisDone()voidSets the result to be returned byFuture.get().voidSets the exception to be wrapped in anExecutionExceptionand thrown byFuture.get().Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Future
exceptionNow, resultNow, state
-
Constructor Details
-
EDTRunnableFuture
public EDTRunnableFuture()Creates a {link RunnableFuture} which will be run on the Event Dispatch Thread. -
EDTRunnableFuture
Creates a {link RunnableFuture} which will be run on the Event Dispatch Thread.- Parameters:
result- the result to return
-
-
Method Details
-
runOnEDT
-
run
public final void run()
-