Cook flour and milk over medium high heat until thickened, approximately three minutes. Remove from heat and cool completely. After flour and milk mixture has cooled, cream together butter, sugar, and cocoa until light and fluffy, about three minutes.
Add flour and milk mixture to butter mixture and beat until it has reached a whipped cream consistency. Add vanilla and beat one additional minute.