Interface SynchronizerApi.Get.SleepInvoke<T>
-
- All Superinterfaces:
SynchronizerApi.Base.SleepInvoke,SynchronizerApi.Get.Invoke<T>
- All Known Subinterfaces:
SynchronizerApi.Get.WakeSleepInvoke<T>
- Enclosing interface:
- SynchronizerApi.Get
public static interface SynchronizerApi.Get.SleepInvoke<T> extends SynchronizerApi.Get.Invoke<T>, SynchronizerApi.Base.SleepInvoke
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SynchronizerApi.Get.Invoke<T>thenSleepUntil(BooleanSupplier state)Adds sleeping to the end of the action chain.-
Methods inherited from interface com.github.mizool.core.concurrent.SynchronizerApi.Get.Invoke
invoke
-
-
-
-
Method Detail
-
thenSleepUntil
SynchronizerApi.Get.Invoke<T> thenSleepUntil(BooleanSupplier state)
Description copied from interface:SynchronizerApi.Base.SleepInvokeAdds 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.- Specified by:
thenSleepUntilin interfaceSynchronizerApi.Base.SleepInvoke- Parameters:
state- the supplier that returnstrueif the chain invocation should finish,falseotherwise.
-
-