Package VASSAL.tools.swing
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
-
Field Summary
Fields inherited from class VASSAL.tools.concurrent.SimpleFuture
cancelled, done, exception, result
-
Constructor Summary
ConstructorDescriptionCreates 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 VASSAL.tools.concurrent.SimpleFuture
cancel, get, get, isCancelled, isDone, set, setException
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface VASSAL.tools.concurrent.SettableFuture
set, setException
-
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
This method is run on the EDT.- Throws:
Exception
- any exception
-
run
public final void run()
-