code: def _threaded_callback(callback, *args):
      
      t = Thread(target=callback, args=args)
      t.daemon = True
      t.start()
docs: Internal wrapper to start a callback in threaded mode. Using the
      daemon mode to not block the main thread from exiting.