Fix docs with regard to Flux.interval

Also provide ability to run with `Flux.interval(Duration)` in
compiled scripts

Fixes gh-174
This commit is contained in:
Oleh Dokuka
2018-05-02 12:25:53 +03:00
committed by Dave Syer
parent eaea89532c
commit 4b85e89992
5 changed files with 14 additions and 3 deletions

View File

@@ -53,6 +53,7 @@ public abstract class AbstractFunctionCompiler<F> {
private static String SOURCE_CODE_TEMPLATE = "package "
+ AbstractFunctionCompiler.class.getPackage().getName() + ";\n"
+ "import java.util.*;\n" // Helpful to include this
+ "import java.time.*;\n" // Helpful to include this
+ "import java.util.function.*;\n"
+ "import reactor.core.publisher.Flux;\n"
+ "public class %s implements CompilationResultFactory<%s> {\n"