@Test public void testpollSimple() { Assert.assertFalse(PollUtils.poll(() -> false, 10, 100)); Assert.assertTrue(PollUtils.poll(() -> true, 10, 100)); }
public static boolean poll(BooleanSupplier cond, long periodMs, long timeoutMs) { return poll((n) -> cond.getAsBoolean(), periodMs, timeoutMs, null); }
PollUtils { public static boolean poll(BooleanSupplier cond, long periodMs, long timeoutMs) { return poll((n) -> cond.getAsBoolean(), periodMs, timeoutMs, null); } }
PollUtils { public static boolean poll(BooleanSupplier cond, long periodMs, long timeoutMs) { return poll((n) -> cond.getAsBoolean(), periodMs, timeoutMs, null); }  }
PollUtils { public static boolean poll(BooleanSupplier cond, long periodMs, long timeoutMs) { return poll((n) -> cond.getAsBoolean(), periodMs, timeoutMs, null); }  static boolean poll(BooleanSupplier cond, long periodMs, long timeoutMs); static boolean poll(InterruptablePredicate<T> cond, long periodMs, long timeoutMs, T arg); static Optional<T> poll(InterruptableSupplier<T> interruptableSupplier, InterruptablePredicate<T> cond,
      long periodMs, long timeoutMs); }
PollUtils { public static boolean poll(BooleanSupplier cond, long periodMs, long timeoutMs) { return poll((n) -> cond.getAsBoolean(), periodMs, timeoutMs, null); }  static boolean poll(BooleanSupplier cond, long periodMs, long timeoutMs); static boolean poll(InterruptablePredicate<T> cond, long periodMs, long timeoutMs, T arg); static Optional<T> poll(InterruptableSupplier<T> interruptableSupplier, InterruptablePredicate<T> cond,
      long periodMs, long timeoutMs);  }