Class: RenderTask

RenderTask()

Allows controlling of the rendering tasks.

Constructor

new RenderTask()

Source:

Members

onContinue :function

Callback for incremental rendering -- a function that will be called each time the rendering is paused. To continue rendering call the function that is the first argument to the callback.
Type:
  • function
Source:

promise

Promise for rendering task completion.
Source:

Methods

cancel()

Cancels the rendering task. If the task is currently rendering it will not be cancelled until graphics pauses with a timeout. The promise that this object extends will be rejected when cancelled.
Source:

then(onFulfilled, onRejected) → {Promise}

Registers callbacks to indicate the rendering task completion.
Parameters:
Name Type Description
onFulfilled function The callback for the rendering completion.
onRejected function The callback for the rendering failure.
Source:
Returns:
A promise that is resolved after the onFulfilled or onRejected callback.
Type
Promise