to be very anxious or nervous because you are waiting to see if something happens the way you want it to
After taking the AP exam, Alice was sitting on pins and needles waiting for her score.