While means 'during which time' (when used in the temporal sense).
While therefore has a suggestion of ongoing action.
"While I was doing the dishes, I watched TV." (while in the process of doing dishes) "When I got home, there was an elephant in the living room." (At the time I got home)