code: def sigint(self) -> None:
          '''Handle the user pressing Ctrl-C by stopping tasks nicely at first,
          then forcibly upon further presses.'''
  
          if self.stop_attempts < 1:
              Log.info('gracefully stopping tasks')
              self.stop_attempts += 1
              self.terminate()
  
          elif self.stop_attempts < 2:
              Log.info('forcefully cancelling tasks')
              self.stop_attempts += 1
              self.terminate(force=True)
  
          else:
              Log.info('forcefully stopping event loop')
              self.loop.stop(f sigint(self) -> None:
          '''Handle the user pressing Ctrl-C by stopping tasks nicely at first,
          then forcibly upon further presses.'''
  
          if self.stop_attempts < 1:
              Log.info('gracefully stopping tasks')
              self.stop_attempts += 1
              self.terminate()
  
          elif self.stop_attempts < 2:
              Log.info('forcefully cancelling tasks')
              self.stop_attempts += 1
              self.terminate(force=True)
  
          else:
              Log.info('forcefully stopping event loop')
              self.loop.stop()
docs: Handle the user pressing Ctrl-C by stopping tasks nicely at first,
          then forcibly upon further presses.