public class Background extends Object
| Constructor and Description |
|---|
Background() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Future<T> |
call(Callable<T> callable) |
static Future<?> |
run(Runnable job) |
static <T> void |
runWithCallback(Callable<T> job,
com.google.common.util.concurrent.FutureCallback<T> callback)
Execute the job in the background and provide a callback which is called when the job is
finished.
|
public static <T> void runWithCallback(Callable<T> job, com.google.common.util.concurrent.FutureCallback<T> callback)
T - the type if the value the callback shall returnjob - The job to executecallback - Callback which is executed when the job is finishedCopyright © 2021 Corpuslinguistic working group Humboldt University Berlin. All rights reserved.