def register_func(operator, func) -> bool:
Description
Registers the callback function of TaskD Agent. This API is called in user code.
Input Parameters
Parameter |
Type |
Description |
|---|---|---|
operator |
String |
Key value of the callback function, for example, START_ALL_WORKER. |
func |
callable |
Callback function |
Return Value
Type |
Description |
|---|---|
Bool |
Whether registration is successful.
|
Parent topic: TaskD Agent APIs