APIdia Launch Partner
Top Description Fields Constructors Methods
com.badlogic.gdx.utils.async

public Class AsyncResult<T>

extends Object
Class Inheritance
Imports
com.badlogic.gdx.utils.GdxRuntimeException, java.util.concurrent.ExecutionException, .Future

Returned by AsyncExecutor#submit(AsyncTask), allows to poll for the result of the asynch workload.
Author
badlogic

Field Summary

Modifier and TypeField and Description
private final Future<T>

Constructor Summary

AccessConstructor and Description
pack-priv
AsyncResult(Future<T> future)

Method Summary

Modifier and TypeMethod and Description
public T
get()

Returns: waits if necessary for the computation to complete and then returns the result

public boolean
isDone()

Returns: whether the AsyncTask is done

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

futureback to summary
private final Future<T> future

Constructor Detail

AsyncResultback to summary
pack-priv AsyncResult(Future<T> future)

Method Detail

getback to summary
public T get()
Returns:T

waits if necessary for the computation to complete and then returns the result

Exceptions
GdxRuntimeException:
if there was an error
isDoneback to summary
public boolean isDone()
Returns:boolean

whether the AsyncTask is done