Package org.ngengine.platform
Interface AsyncTask<T>
-
public interface AsyncTask<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description T
await()
static <T> AsyncTask<java.util.List<T>>
awaitAll(java.util.List<AsyncTask<T>> tasks)
void
cancel()
AsyncTask<T>
catchException(java.util.function.Consumer<java.lang.Throwable> func2)
<R> AsyncTask<R>
compose(ThrowableFunction<T,AsyncTask<R>> func2)
boolean
isDone()
boolean
isFailed()
boolean
isSuccess()
<R> AsyncTask<R>
then(ThrowableFunction<T,R> func2)
-
-
-
Method Detail
-
cancel
void cancel()
-
isDone
boolean isDone()
-
isFailed
boolean isFailed()
-
isSuccess
boolean isSuccess()
-
await
T await() throws java.lang.Exception
- Throws:
java.lang.Exception
-
then
<R> AsyncTask<R> then(ThrowableFunction<T,R> func2)
-
compose
<R> AsyncTask<R> compose(ThrowableFunction<T,AsyncTask<R>> func2)
-
-