com.badlogic.gdx.utils.async
Class AsyncResult<T>

java.lang.Object
  extended by 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

Method Summary
 T get()
           
 boolean isDone()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.