Please don't use a non-stick pan for this if at all possible. It's much better in this instance to use cast iron if you have it, or at least stainless steel. Heat the oil until it's very hot, add the onions, stir, and reduce to low heat.