In a saucepan, combine evaporated milk, sugar, egg yolks, butter, and vanilla. Cook over medium heat, stirring constantly until thickened, about 12 minutes.
Remove from heat and stir in pecans and coconut. Allow to cool before spreading on cake.
Notes:
Make sure to constantly stir the mixture to avoid burning.