public class TaskChainAsyncQueue extends Object implements AsyncQueue
Constructor and Description |
---|
TaskChainAsyncQueue() |
TaskChainAsyncQueue(ThreadPoolExecutor executor) |
Modifier and Type | Method and Description |
---|---|
static ThreadPoolExecutor |
createCachedThreadPool() |
void |
postAsync(Runnable runnable)
Task to post async of main thread
|
void |
shutdown(int timeout,
TimeUnit unit)
Call during game shutdown state
|
public TaskChainAsyncQueue()
public TaskChainAsyncQueue(ThreadPoolExecutor executor)
public static ThreadPoolExecutor createCachedThreadPool()
public void postAsync(Runnable runnable)
AsyncQueue
postAsync
in interface AsyncQueue
public void shutdown(int timeout, TimeUnit unit)
shutdown
in interface AsyncQueue
timeout
- unit
- Copyright © 2018. All rights reserved.