GroovycContinuation (Future<Void> future, @NotNull Queue<String> mailbox, GroovycOutputParser parser) { return new GroovycContinuation() { @NotNull @Override public GroovyCompilerResult continueCompilation() throws Exception { parser.onContinuation(); mailbox.offer(GroovyRtConstants.JAVAC_COMPLETED); future.get(); return parser.result(); } @Override public void buildAborted() { mailbox.offer(GroovyRtConstants.BUILD_ABORTED); } }; }