code: func terminateBotAsync(c context.Context, id, hostname string) error {
  	t := &tq.Task{
  		Payload: &tasks.TerminateBot{
  			Id:       id,
  			Hostname: hostname,
  		},
  	}
  	if err := getDispatcher(c).AddTask(c, t); err != nil {
  		return errors.Annotate(err, "failed to schedule terminate task").Err()
  	}
  	return nil
  }
docs: // terminateBotAsync schedules a task queue task to terminate a Swarming bot.