'One iteration of the event loop, for trial\'s use.
This is not used for actual reactor runs.'

def iterate(self, delay=0):

    self.runUntilCurrent()
    while self._pending():
        self._iteration(0)
