def __iter__(self):
for item in self.result:<EOL><INDENT>yield item<EOL><DEDENT>
Magic method in python to support iteration.
Example:

.. code-block:: python

    future = Future()
    future.set([1, 2, 3])
    for row in future:
        print(row)

:return: iterable generator