“For a while” is used when we’re talking about a duration of time. We’re using it to talk about the length of time that something happened, so duration is really the key here.
Por un tiempo….
we use “in a while,” we’re talking about an upcoming activity–>PRONTO
- “I’m going to leave the office in a while.”
- “We’re gonna go to the coffee shop in a while, you want anything?”