Resolves the documents from an async generator and returns them as a flattened array.
The async generator to resolve documents from.
Resolves the documents from an async generator and returns them as a flattened array.