code: def mask_sigint():
      
      if is_main_thread():
          sigint_handler = signal.signal(signal.SIGINT, signal.SIG_IGN)
          yield True
          signal.signal(signal.SIGINT, sigint_handler)
      else:
          yield False
docs: Returns:
          If called in main thread, returns a context where ``SIGINT`` is ignored, and yield True.
          Otherwise yield False.