Ok I got it myself. You have to override FPendingLatentAction, pass it to LatentManager.AddNewAction, and inside that class override UpdateOperation(FLatentResponse& Response). From there call
Response.FinishAndTriggerIf(true, LatentInfo.ExecutionFunction, LatentInfo.Linkage, LatentInfo.CallbackTarget);