CA
correct-apricot
Using return and Actor.exit()
I wrote a function that needs to return it's result and will like to find out how to do that since I also have to call exit which terminates the function.
2 Replies
correct-apricot•10mo ago
Hello, what do you intend to return the data to? If you have a return on the top level, it do you want to return an exit code for the process, or what is the purpose of it?
fascinating-indigo•9mo ago
Usually we save data to KV store or to the dataset.
https://docs.apify.com/sdk/js/reference/class/Dataset
https://docs.apify.com/sdk/js/docs/next/guides/result-storage