it doesn’t mean thousands or millions of years as some would hope it would.
The word translated “generations” also figuratively refers to the “history” of Adam. In the context of Gen 2:4 and Gen 5:2 describing Creation, we are safe to understand His Word as He presents it in a literal sense. Also reading the rest of Gen 2 in context manifests a communication of Creation, rather than a series of transformations.