code: func (server *Server) RegisterTasks(namedTaskFuncs map[string]interface{}) error {
  	for _, task := range namedTaskFuncs {
  		if err := tasks.ValidateTask(task); err != nil {
  			return err
  		}
  	}
  	server.registeredTasks = namedTaskFuncs
  	server.broker.SetRegisteredTaskNames(server.GetRegisteredTaskNames())
  	return nil
  }
docs: // RegisterTasks registers all tasks at once