RegisterTask registers a task, optionally with restart policy and backoff, to be started after the component started.
(conf *task.Config)
| 18 | |
| 19 | // RegisterTask registers a task, optionally with restart policy and backoff, to be started after the component started. |
| 20 | func (c *Component) RegisterTask(conf *task.Config) { |
| 21 | c.taskConfigs = append(c.taskConfigs, conf) |
| 22 | } |
| 23 | |
| 24 | // StartTask implements the TaskStarter interface. |
| 25 | func (c *Component) StartTask(conf *task.Config) { |
no outgoing calls