Steps
In a small saucepan, combine the milk and sugar, then heat gently until warm.
Gradually whisk in the semolina and cocoa powder, stirring continuously to prevent lumps.
Cook over medium heat, stirring constantly, until the mixture thickens (about 5 minutes).
Once thickened, remove from heat and let it cool slightly.
In a bowl, beat the egg, then temper it by adding a spoonful of the hot pudding mixture to the egg, mixing well.
Stir the tempered egg back into the pudding, mixing thoroughly.
Pour the pudding into a serving dish and let it cool completely before serving.