Interface SynchronizerApi.Run.SleepInvoke

    • Method Detail

      • thenSleepUntil

        SynchronizerApi.Run.Invoke thenSleepUntil​(BooleanSupplier state)
        Description copied from interface: SynchronizerApi.Base.SleepInvoke
        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 returns false, this action chain resumes sleeping. Otherwise, the chain invocation finishes.
        Specified by:
        thenSleepUntil in interface SynchronizerApi.Base.SleepInvoke
        Parameters:
        state - the supplier that returns true if the chain invocation should finish, false otherwise.