Question: is awhile or a while?
Answer: Awhile is an adverb which means “for a period of time.” A while is a noun phrase which means “a period of time.”