a while vs awhile
One word or twoA while (two words) is a noun phrase, an article plus a noun, so it can follow a preposition such as for or in: for a while, in a while. Awhile (one word) is an adverb meaning for a time, so it describes a verb and does not follow for: rest awhile.
Remember: After for or in, split it: for a while. If it sits right after the verb with nothing in between, one word works: stay awhile.
- It took a while to learn the new scheduling system.
- Rest awhile before the second half of the shift.