up.RenderJob.prototype.then(onFulfilled, onRejected)
Instance method
An up.RenderJob is also a promise for its completion.
The promise is fulfilled with an up.RenderResult when a fragment
was updated from a successful server response.
The promise will reject for responses with an HTTP error status, when the request is aborted, or when there is a network issue.
See render hooks for examples of awaiting rendering completion and how to handle errors.
Parameters
onFulfilled
required
Type: Function(up.RenderResult)
onRejected
required
Type: Function(up.RenderResult|Error)
Return value
A promise that fulfills with an up.RenderResult once the page has been updated.
Type: Promise<up.RenderResult>