Package com.badlogic.gdx.utils.async
Class AsyncResult<T>
- java.lang.Object
-
- com.badlogic.gdx.utils.async.AsyncResult<T>
-
public class AsyncResult<T> extends java.lang.ObjectReturned byAsyncExecutor.submit(AsyncTask), allows to poll for the result of the asynch workload.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tget()booleanisDone()
-
-
-
Method Detail
-
isDone
public boolean isDone()
- Returns:
- whether the
AsyncTaskis done
-
get
public T get()
- Returns:
- waits if necessary for the computation to complete and then returns the result
- Throws:
GdxRuntimeException- if there was an error
-
-