JavaScript callback execute in main thread

143 Views Asked by At

I am using a JSOM SharePoint call to get some values from a list. Once I get the values in the callback I want to execute the code in the main method of the thread. How do I do that?

1

There are 1 best solutions below

2
On

It is javascript, callbacks execute in the main thread.

I suspect that's not your actual issue and you are having some problems with the async nature of the call and/or closures. If so, please extend your question to provide more information on your exact problem.