Question: how long is a while?
Answer: Whereas "a while" implies a longer period, and you will have time do something. But it is deliberately vague, and could be anything from a few minutes to days. (or even years given the right context).