@Override public Publisher<Long> createPublisher(long elements) { if (!DependencyUtils.hasJdk9Flow()) { throw new SkipException("no jdk 9 classes found"); } SubmissionPublisher<Long> pub = new SubmissionPublisher<>(); Timers.global().schedule(pub::submit, 50, TimeUnit.MILLISECONDS); return Publishers.convert(pub); }
@BeforeTest public void before() { Timers.global(); }