Updates the handle with a callback to execute when iteration is completed.
AsyncHandle.onComplete = function(callback) { /*...*/ }
AsyncHandle.onComplete = function onComplete(callback) { this.resolveListeners.push(callback); return this; }
Name | Type(s) | Description |
---|---|---|
callback | Function | The function to call when the asynchronous iteration is completed. |