public final class ActionUpdateEdtExecutor
extends java.lang.Object
Constructor and Description |
---|
ActionUpdateEdtExecutor() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
computeOnEdt(java.util.function.Supplier<T> supplier)
Compute the supplied value on Swing thread, but try to avoid deadlocks by periodically performing
ProgressManager.checkCanceled() in the current thread. |
public static <T> T computeOnEdt(java.util.function.Supplier<T> supplier)
ProgressManager.checkCanceled()
in the current thread.
Makes sense to be used in background read actions running with a progress indicator that's canceled when a write action is about to occur.ReadAction.nonBlocking(Runnable)