Global

Methods

userCallback(resultOrError)

Signature of the user provided callback function used to deliver the result of asynchronous API methods.
Callbacks are always executed in a later run of the Javascript event loop like in Node's process.nextTick(callback) or setTimeout(callback, 0), i.e. never immediately or synchronously to the method call.
Parameters:
Name Type Description
resultOrError * | LiveSupport.ManagedError | Error The result of the asynchronous process or an API error. If the API call has failed resultOrError instanceof Error is true.
Source: