Interface SynchronizerApi.Base.SleepInvoke

    • 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 returns false, this action chain resumes sleeping. Otherwise, the chain invocation finishes.
        Parameters:
        state - the supplier that returns true if the chain invocation should finish, false otherwise.
        Throws:
        NullPointerException - if state is null