code: func (handler *TaskHandler) getTasksToEventsLen() int {
  	handler.lock.RLock()
  	defer handler.lock.RUnlock()
  
  	return len(handler.tasksToEvents)
  }
docs: // getTasksToEventsLen returns the length of the tasksToEvents map. It is
  // used only in the test code to ascertain that map has been cleaned up