Package com.j3d.threads
Class FakeLongTask
java.lang.Object
com.j3d.threads.FakeLongTask
Executes the same as
LongTask but is simply for convention.
A FakeLongTask is to be used when you want to simulate something taking long
when in reality it wont.
The primary use case is for when you open the engine to display the splash text while the actual app opens on the EDT.
- Author:
- Lehlogonolo Poole
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFakeLongTask(Runnable task, Runnable taskFinished, Runnable onEDT, double EDTwaitSeconds) -
Method Summary
-
Field Details
-
task
-
taskFinished
-
onEDT
-
EDTwaitSeconds
private final double EDTwaitSeconds
-
-
Constructor Details
-
FakeLongTask
-
-
Method Details
-
run
- Throws:
InterruptedException
-
iAmImpatient
public void iAmImpatient()
-