Class WaitGroup

java.lang.Object
dev.engine_room.flywheel.impl.task.WaitGroup

public class WaitGroup extends Object
  • Constructor Details

    • WaitGroup

      public WaitGroup()
  • Method Details

    • add

      public void add()
    • add

      public void add(int i)
    • done

      public void done()
    • await

      public boolean await(int nsTimeout)
      Spins for up to the given number of nanoseconds before returning.
      Parameters:
      nsTimeout - How long to wait for the counter to reach 0.
      Returns:
      true if the counter reached 0, false if the timeout was reached.
    • _reset

      public void _reset()