Mix the flour, sugar, cocoa and salt together. Add egg yolks, milk, butter and vanilla. Cook, stirring constantly, until thick. A wire whisk works well to stair with. May have a tendency to lump when it begins to thicken; continue stirring clockwise and counter-clockwise. Lumps will disappear. Pour into baked pie crust.