@defer.inlineCallbacks
def _runSequentially(callables, stopOnFirstError=False):
 results = []
 for f in callables:
  d = defer.maybeDeferred(f)
  try:
   thing = (yield d)
   results.append((defer.SUCCESS, thing))
  except Exception:
   results.append((defer.FAILURE, Failure()))
   if stopOnFirstError:
    break
 defer.returnValue(results)

@ defer . inlineCallbacks def _runSequentially ( callables , stopOnFirstError = False ) : results = [ ] for f in callables : d = defer . maybeDeferred ( f ) try : thing = ( yield d ) results . append ( ( defer . SUCCESS , thing ) ) except Exception : results . append ( ( defer . FAILURE , Failure ( ) ) ) if stopOnFirstError : break defer . returnValue ( results )
run the given callables one after the other .