They are finely ground so they'll break up really quickly in the compost.
But did you know coffee grounds are great for broad leaf evergreens like azalea and rhodedondron? Just sprinkle the grounds around the base of the shrubs and let them work their magic.
Some coffee shops also offer their spent grounds to customers. If you holly or blue spruce needs a pick- me-up its a great organic way to help them out.