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 Object
thenSleepUntil(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 returnstrue
if the chain invocation should finish,false
otherwise.- Throws:
NullPointerException
- ifstate
is null
-
-