JustAwait

This commit is contained in:
洪籽阳外婆
2024-10-19 20:22:33 +08:00
committed by GitHub
parent 47fb2368fe
commit 211a429499
3 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
(async function () {
// settings 的对象内容来自于 settings.json 文件生成的动态配置页面
log.info('等待{time}秒', settings.t)
timeset=1000*settings.t
await sleep(timeset);
})();

View File

@@ -0,0 +1,13 @@
{
"manifest_version": 1,
"name": "只是等待一下",
"version": "1.0",
"description": "只用于等待,方便在调度器为不同性能的设备配置等待",
"authors": [
{
"name": "HZYgrandma",
}
],
"settings_ui": "settings.json",
"main": "main.js"
}

View File

@@ -0,0 +1,7 @@
[
{
"name": "t",
"type": "input-text",
"label": "等待时间(单位:秒)"
}
]