Interface SynchronizerApi.SleepRunGet

    • Method Detail

      • sleepUntil

        SynchronizerApi.RunGet sleepUntil​(BooleanSupplier state)
        Adds sleeping to 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 continues by performing the main action.
        Parameters:
        state - the supplier that returns true if the action chain should continue, false otherwise.
        Throws:
        NullPointerException - if state is null