original_docstring: 
          keep the event loop running until all work finished
          
docstring: keep the event loop running until all work finished
docstring_tokens: keep the event loop running until all work finished
code: def start_work_and_wait(self):
          """
          keep the event loop running until all work finished
          """
          try:
              self._loop.run_until_complete(self._start())
          except KeyboardInterrupt:
              # sys.stderr.flush()
              print('\nInterrupted by user\n')
              logging.info('statistics: %r', self._stats)
              logging.info('time elapsed: %r seconds', time.time() - self._stats['t0'])
          finally:
              self._fetcher.close_session()
              # next two lines are required for actual aiohttp resource cleanup
              self._loop.stop()
              self._loop.run_forever()
  
              self._loop.close()
          return
code_tokens: def start_work_and_wait ( self ) : try : self . _loop . run_until_complete ( self . _start ( ) ) except KeyboardInterrupt : print ( '\nInterrupted by user\n' ) logging . info ( 'statistics: %r' , self . _stats ) logging . info ( 'time elapsed: %r seconds' , time . time ( ) - self . _stats [ 't0' ] ) finally : self . _fetcher . close_session ( ) self . _loop . stop ( ) self . _loop . run_forever ( ) self . _loop . close ( ) return
short_docstring: keep the event loop running until all work finished
short_docstring_tokens: keep the event loop running until all work finished
comment: """
          keep the event loop running until all work finished
          """$SEP$# sys.stderr.flush()$SEP$# next two lines are required for actual aiohttp resource cleanup