目录
当前位置: 首页 > 文档资料 > Lazy.js 英文文档 >

onComplete

优质
小牛编辑
137浏览
2023-12-01

Updates the handle with a callback to execute when iteration is completed.

Signature

AsyncHandle.onComplete = function(callback) { /*...*/ }
AsyncHandle.onComplete = function onComplete(callback) {
  this.resolveListeners.push(callback);
  return this;
}
NameType(s)Description
callbackFunction

The function to call when the asynchronous iteration is completed.