Package com._1c.g5.aef2.engines
Interface IRunnableQueue
- All Known Subinterfaces:
IEngine
- All Known Implementing Classes:
Engine
public interface IRunnableQueue
Defines the contract of the asynchronous runnable queue.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IRunnableQueue
Runnable queue with the immediate execution of runnables. -
Method Summary
Modifier and TypeMethodDescriptionvoid
queueAndWaitRunnable
(Runnable runnable) Queues the runnable for execution and waits for its completion.void
queueRunnable
(Runnable runnable) Queues the runnable for execution.
-
Field Details
-
IMMEDIATE
Runnable queue with the immediate execution of runnables.
-
-
Method Details
-
queueRunnable
Queues the runnable for execution.- Parameters:
runnable
- the runnable to queue.- See Also:
-
queueAndWaitRunnable
Queues the runnable for execution and waits for its completion. The runnables queued during the passed runnable execution are also executed before this method returns. Typically, runnables created as a result of the user interaction with the UI should be executed synchronously using this method.- Parameters:
runnable
- the runnable to queue and wait for.- See Also:
-