Class NoCondition

java.lang.Object
de.linusdev.lutils.async.conditioned.NoCondition
All Implemented Interfaces:
Condition

public class NoCondition extends Object implements Condition
  • Constructor Details

    • NoCondition

      public NoCondition()
  • Method Details

    • check

      public boolean check()
      Description copied from interface: Condition
      Check whether the condition is met. Once a condition is met, this method must return true until the corresponding Task has completed execution.
      Specified by:
      check in interface Condition
      Returns:
      true if the condition is met. false otherwise.
    • await

      public void await()
      Description copied from interface: Condition
      Waits the current thread until the condition is met.
      Specified by:
      await in interface Condition