allows calling endOfStream only for the last stream in multi period mpds