docs: def abort_thread():
      """
      This function checks to see if the user has indicated that they want the
      currently running execution to stop prematurely by marking the running
      thread as aborted. It only applies to operations that are run within
      CauldronThreads and not the main thread.
      """
  
      thread = threading.current_thread()
  
      if not isinstance(thread, CauldronThread):
          return
  
      if thread.is_executing and thread.abort:
          raise ThreadAbortError('User Aborted Execution')