| Modifier and Type | Method and Description |
|---|---|
<T> Async<T> |
async(Callable<T> func)
Instantly starts a non-blocking async task.
|
Async<Void> |
async(Runnable func)
Instantly starts a non-blocking async task.
|
ScheduledFuture<?> |
schedule(Runnable action,
javafx.util.Duration delay)
Schedule a single action to run after delay.
|
void |
shutdownNow()
Shuts down all background threads used by this executor.
|
ScheduledFuture<?> schedule(Runnable action, javafx.util.Duration delay)
action - the actiondelay - delay<T> Async<T> async(Callable<T> func)
T - return type of the code blockfunc - the code to runAsync<Void> async(Runnable func)
func - the code to runvoid shutdownNow()
Copyright © 2017. All rights reserved.