when you are expecting something to happen:
She waited in eager anticipation for Robert to arrive.
Taylor was excited and full of anticipation at the prospect of the trip.
to do something because you expect something to happen:
The workers have called off their strike in anticipation of a pay offer.