Class WaitGroup
java.lang.Object
dev.engine_room.flywheel.impl.task.WaitGroup
-
Constructor Summary
Constructors -
Method Summary
-
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:
trueif the counter reached 0,falseif the timeout was reached.
-
_reset
public void _reset()
-