Combine heavy cream, milk, sugar, cornstarch, flour, and vanilla extract in a small pot over medium heat. Stir continuously until it boils. Reduce heat, simmer, and keep stirring until thick. Transfer to a bowl, cover with plastic wrap touching the cream, and chill in the fridge.