I have a stream, say s1. Now I want the demo function in the following code to complete execution before another on(data ... is executed.<
s1
demo
on(data ...