Sprinkle 1 teaspoon all-purpose flour over the onions, stir well, and cook for about 1 minute to lightly toast the flour.