Package com.diffplug.common.swt
Class SwtExec.Blocking
java.lang.Object
com.diffplug.common.swt.SwtExec.Blocking
- All Implemented Interfaces:
Executor
- Enclosing class:
- SwtExec
An Executor (obtained via
SwtExec.blocking()) which adds a blocking get() method.
- When `execute(Runnable)` is called from the SWT thread, the `Runnable` will be executed immediately.
- Else, the `Runnable` will be passed to
Display.syncExec.
- See Also:
-
SwtExec.blocking
-
Method Summary
Modifier and TypeMethodDescriptionvoid<T> TPerforms a blocking get in the UI thread.guardOn(com.diffplug.common.swt.ControlWrapper guard) Returns an executor which will only execute if the given guard hasn't been disposed.Returns an executor which will only execute if the given guard hasn't been disposed.
-
Method Details
-
guardOn
Returns an executor which will only execute if the given guard hasn't been disposed. -
guardOn
Returns an executor which will only execute if the given guard hasn't been disposed. -
execute
-
get
Performs a blocking get in the UI thread.- Parameters:
supplier- will be executed in the UI thread.- Returns:
- the value which was returned by supplier.
-