In a small saucepan, cook milk and flour over medium heat, whisking constantly, until thickened and pudding-like and an instant-read thermometer registers 170°F (77°C), 4 to 5 minutes. Remove from heat, and whisk in extracts and salt. Pour into a small bowl; cover with a piece of plastic wrap, pressing wrap directly onto surface of mixture to prevent a skin from forming. Refrigerate until completely cool, about 1 hour.