inactivity

Detect pauses in a data stream

To detect a certain period of inactivity from a data source, you can use the delay object. The delay object can only delay oneĀ bang at a time, and if it receives another bang before the first one is sent out, it discards the first one and delays the second one. Thus, each time an event occurs, you can simply bang the delay to schedule a bang for some time in the future.