public class QueuedWork extends Object
Constructor and Description |
---|
QueuedWork() |
Modifier and Type | Method and Description |
---|---|
static void |
add(Runnable finisher)
Add a runnable to finish (or wait for) a deferred operation
started in this context earlier.
|
static boolean |
hasPendingWork()
Returns true if there is pending work to be done.
|
static void |
remove(Runnable finisher) |
static ExecutorService |
singleThreadExecutor()
Returns a single-thread Executor shared by the entire process,
creating it if necessary.
|
static void |
waitToFinish()
Finishes or waits for async operations to complete.
|
public static ExecutorService singleThreadExecutor()
public static void add(Runnable finisher)
public static void remove(Runnable finisher)
public static void waitToFinish()
public static boolean hasPendingWork()