The key here is to use cornstarch or flour which helps thicken the pudding up and keep it that way once it has cooled. Both cornstarch and flour need to be heated to 60C/140F to activate the thickening power.