Sample Demo
Use the
StreamExt.sample
function to sample values from the input source.
Start
publish events once per second Samples :