Package org.ngengine.platform
Class ExecutionQueue
- java.lang.Object
-
- org.ngengine.platform.ExecutionQueue
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class ExecutionQueue extends java.lang.Object implements java.io.Closeable
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedExecutionQueue()protectedExecutionQueue(AsyncExecutor executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()<T> AsyncTask<T>enqueue(java.util.function.BiConsumer<java.util.function.Consumer<T>,java.util.function.Consumer<java.lang.Throwable>> runnable)
-
-
-
Constructor Detail
-
ExecutionQueue
protected ExecutionQueue()
-
ExecutionQueue
protected ExecutionQueue(AsyncExecutor executor)
-
-
Method Detail
-
enqueue
public <T> AsyncTask<T> enqueue(java.util.function.BiConsumer<java.util.function.Consumer<T>,java.util.function.Consumer<java.lang.Throwable>> runnable)
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-