Registers the callback function of TaskD Agent. This API is called in user code.
Parameter |
Type |
Description |
|---|---|---|
operator |
String |
Key value of the callback function, for example, START_ALL_WORKER. |
func |
callable |
Callback function |
Type |
Description |
|---|---|
Bool |
Whether registration is successful.
|