The key is to understand when to use ‘awhile‘ and ‘a while‘ is to remember that both belong to different parts of speech. To test yourself and see if you know the difference between them, try replacing ‘awhile‘ with other noun phrases like ‘a year‘, or, ‘a decade‘. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.