I have a set of data coming one at a time every T ms (e.g. data coming from some hardware). When a certain number M of this samples is gathered, I want to process them and p