The output is of "concat example" is :  

Next(🍎)
Next(🍐)
Next(🍊)
Next(🐱)
Next(🐭)

If people do not use 'concat()', the result is the same, the demo cannot show the effect of 'concat()', which is "waiting for each sequence to terminate successfully before emitting elements from the next sequence"

so I add one line code for better demonstration.
This commit is contained in:
闻端Carl 2016-05-19 23:24:35 +08:00
parent 4b3056b81f
commit 607ebfbf3d
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ example("concat") {
variable.value = subject2
subject2.onNext("I would be ignored")
subject2.onNext("🐱")
subject1.onCompleted()