Class ThreadFuture<V>
java.lang.Object
dev.pfaff.altargui.util.ThreadFuture<V>
- All Implemented Interfaces:
BasicFuture<V>
-
Field Summary
Fields inherited from interface dev.pfaff.altargui.util.BasicFuture
COMPLETED_NULL
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
boolean
isAlive()
join()
static ThreadFuture
<Void> spawnVirtualTask
(FallibleRunnable runnable) static <V> ThreadFuture
<V> spawnVirtualTask
(Callable<V> callable) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.pfaff.altargui.util.BasicFuture
cancelOnInterrupt, flatMap, map, thenAccept, uncatch
-
Method Details
-
spawnVirtualTask
-
spawnVirtualTask
-
join
- Specified by:
join
in interfaceBasicFuture<V>
- Throws:
CompletionException
CancellationException
-
cancel
public void cancel()- Specified by:
cancel
in interfaceBasicFuture<V>
-
isAlive
public boolean isAlive()
-