code: def register(self, name, function, description=None):
          
          return self.__app.threads.register(name, function, self._plugin, description)
docs: Register a new thread.
  
          :param function: Function, which gets called for the new thread
          :type function: function
          :param name: Unique name of the thread for documentation purposes.
          :param description: Short description of the thread