Solved there https://forum.uipath.com/t/how-to-execute-asynchronous-code-from-a-custom-code-activity/144757/3