You can just do `items = list(result)` to exhaust the generator.