A duplex stream that only passes data through when a set function returns true