Class AsSoonAsMediator
java.lang.Object
ch.nolix.base.programcontrol.flowcontrol.AsSoonAsMediator
- All Implemented Interfaces:
IAsSoonAsMediator
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionrunInBackground(Runnable job) Lets the currentIAsSoonAsMediatorrun the given job asynchronously in background.static AsSoonAsMediatorwithCondition(BooleanSupplier condition)
-
Method Details
-
withCondition
- Parameters:
condition-- Returns:
- a new
AsSoonAsMediatorwith the given condition. - Throws:
RuntimeException- if the given condition is null.
-
runInBackground
Lets the currentIAsSoonAsMediatorrun the given job asynchronously in background.- Specified by:
runInBackgroundin interfaceIAsSoonAsMediator- Parameters:
job-- Returns:
- a new
IFuture.
-