TimeOut Demo

Use the StreamExt.timeOut function to terminate the stream after the specified number of seconds between values elapsed.

Time out stream after seconds gap between values.


Output :