Interface SynchronizerApi.Base.SleepInvoke
-
- All Known Subinterfaces:
SynchronizerApi.Base.WakeSleepInvoke,SynchronizerApi.Get.SleepInvoke<T>,SynchronizerApi.Get.WakeSleepInvoke<T>,SynchronizerApi.Run.SleepInvoke,SynchronizerApi.Run.WakeSleepInvoke
- Enclosing interface:
- SynchronizerApi.Base
public static interface SynchronizerApi.Base.SleepInvoke
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectthenSleepUntil(BooleanSupplier state)Adds sleeping to the end of the action chain.
-
-
-
Method Detail
-
thenSleepUntil
Object thenSleepUntil(BooleanSupplier state)
Adds sleeping to the end of the action chain.
When performing this action, the chain will sleep until another chain wakes it up, then call the given supplier. If the supplier returnsfalse, this action chain resumes sleeping. Otherwise, the chain invocation finishes.- Parameters:
state- the supplier that returnstrueif the chain invocation should finish,falseotherwise.- Throws:
NullPointerException- ifstateis null
-
-