public class BackgroundTaskQueue
extends java.lang.Object
run(Task.Backgroundable)
BackgroundTaskQueue may have a title - this title will be used if the task which is currently running doesn't have a title.Modifier and Type | Class and Description |
---|---|
protected class |
BackgroundTaskQueue.BackgroundableTaskData |
protected static interface |
BackgroundTaskQueue.TaskData |
Modifier and Type | Field and Description |
---|---|
protected <any> |
myProcessor |
protected java.lang.String |
myTitle |
Constructor and Description |
---|
BackgroundTaskQueue(Project project,
java.lang.String title) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
isEmpty() |
void |
run(Task.Backgroundable task) |
void |
run(Task.Backgroundable task,
ModalityState modalityState,
ProgressIndicator indicator) |
void |
setForceAsyncInTests(boolean value,
Disposable disposable) |
void |
waitForTasksToFinish() |
protected final java.lang.String myTitle
protected final <any> myProcessor
public BackgroundTaskQueue(Project project, java.lang.String title)
public void clear()
public boolean isEmpty()
public void waitForTasksToFinish()
public void run(Task.Backgroundable task)
public void run(Task.Backgroundable task, ModalityState modalityState, ProgressIndicator indicator)
public void setForceAsyncInTests(boolean value, Disposable disposable)