Google 应用程序脚本 - 在 onOpen 触发器中使用 setInterval - 错误“未定义”

use*_*722 5 triggers google-sheets google-apps-script

我正在尝试在 onOpen 触发器中使用 setInterval 函数。当我运行它时,我得到“未定义“setInterval”。错误。在 Google 应用程序脚本中使用 setInterval 有什么限制吗?

这是代码:

setInterval(function(){
  Logger.log("test");
}, 100);
Run Code Online (Sandbox Code Playgroud)