def __next__(self):
<EOL>if not self._work:<EOL><INDENT>raise StopIteration()<EOL><DEDENT>return self._work.popleft()<EOL>
Obtain the next item from the work queue.

:returns: The next item of work to process.