/** * Set a foreground handler, this handler is called when the command is running and put to foreground. * @param handler the foreground handler * @return this command */ public io.vertx.rxjava.ext.shell.command.CommandProcess foregroundHandler(Handler<Void> handler) { delegate.foregroundHandler(handler); return this; }
/** * Set a foreground handler, this handler is called when the command is running and put to foreground. * @param handler the foreground handler * @return this command */ public io.vertx.rxjava.ext.shell.command.CommandProcess foregroundHandler(Handler<Void> handler) { delegate.foregroundHandler(handler); return this; }
process.suspendHandler(v -> fooSusp.complete()); process.resumeHandler(v -> fooResumed.complete()); process.foregroundHandler(v -> fooToForeground.complete()); process.stdinHandler(line -> { context.assertEquals("foo_msg", line);
context.assertFalse(process.isForeground()); }); process.foregroundHandler(v -> { context.assertTrue(process.isForeground()); latch3.countDown();