code: func (b *Broker) IsTaskRegistered(name string) bool {
  	for _, registeredTaskName := range b.registeredTaskNames {
  		if registeredTaskName == name {
  			return true
  		}
  	}
  	return false
  }
docs: // IsTaskRegistered returns true if the task is registered with this broker