computed.js |
Helper for long-running processes that should yield occasionally to
the mainloop.
@param {Window} win
Timeouts will be set on this window when appropriate.
@param {Array} array
The array of items to process.
@param {Object} options
Options for the update process:
onItem {function} Will be called with the value of each iteration.
onBatch {function} Will be called after each batch of iterations,
before yielding to the main loop.
onDone {function} Will be called when iteration is complete.
onCancel {function} Will be called if the process is canceled.
threshold {int} How long to process before yielding, in ms.
|
50101 |
moz.build |
|
378 |
test |
|
|