fix: async task, handle RejectedExecutionException

This commit is contained in:
Hannes Janetzek
2014-01-17 15:13:04 +01:00
parent bfb86e0a57
commit f385725311
2 changed files with 10 additions and 3 deletions

View File

@@ -52,8 +52,9 @@ public class AsyncExecutor implements Disposable {
*
* @param task the task to execute asynchronously
*/
public void post(Runnable task) {
public boolean post(Runnable task) {
Gdx.app.postRunnable(task);
return true;
}
/**