Combine the half-and-half, milk, egg yolks, sugar, and a pinch of salt in the top of a double boiler set over, not in, hot water on medium heat. Cook, stirring constantly, until the sauce is thickened by the cooking of the egg yolks. Remove from heat and stir in the vanilla extract. Serve warm or col