The following phrases are from lesson 1.4. There were questions about when these expressions can be used. I would assume that it would be acceptable to use them when you leaving a Spanish class or a friends home. Any thoughts?
Ha sido un gusto. ¡Hasta la próxima vez!
It was a pleasure. Until next time!