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

@@ -122,7 +122,7 @@ curl -X POST -H "Content-Type: text/plain" -d foo localhost:9002/print
First register a streaming words supplier:
----
./registerSupplier.sh -n wordstream -f "()->Flux.intervalMillis(1000).map(i->\"message-\"+i)"
./registerSupplier.sh -n wordstream -f "()->Flux.interval(Duration.ofMillis(1000)).map(i->\"message-\"+i)"
----
Then start the source (supplier), processor (function), and sink (consumer) apps