com.badlogic.gdx.utils.async
Class AsyncResult<T>
java.lang.Object
com.badlogic.gdx.utils.async.AsyncResult<T>
public class AsyncResult<T>
- extends Object
Returned by AsyncExecutor.submit(AsyncTask)
, allows to poll for the result of the asynch workload.
- Author:
- badlogic
isDone
public boolean isDone()
- Returns:
- whether the
AsyncTask
is 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
Copyright © 2013. All Rights Reserved.