Friends enjoying a celebration and learn how to knit.
While learning how to knit the friends are enjoying a celebration
The friends learning how to knit and enjoying the celebration implies that they are learning how to knit while the celebration is going on.
(-x)
(-x)