Default of "async" option "false" or "true"?

Mar 6, 2014 at 10:14 AM
I'm a little confused about the default value of the "false" option.

In the "General Synax" section of this page it says:
  • "By default, all of the Web Service operations are called asynchronously with AJAX."
Whereas in one of the async/promises blogposts it says:
  • "In the promises version, the async option isn’t set, so it has the default of false."
Is this something I'm reading the wrong way?
Or does the quote from the blogpost just refer to the use of $().SPServices() in the context of promises?
Mar 6, 2014 at 3:28 PM
I'm pretty sure that by default all calls are async: true. There was a bug when Marc initially introduced support for Promises that was setting non-promise calls (those that defined a completefunc) to async:false, but that has been fixed (I'm daily certain)


--
Paul T.

-- Sent from Mobile

Coordinator
Mar 10, 2014 at 2:21 PM
By default, async is true in jQuery. See http://api.jquery.com/jQuery.ajax/

I'll check those documentation pages. I may well have something wrong.

M.
Mar 10, 2014 at 6:43 PM
Marc,
thanks for the info!