MCPcopy Create free account
hub / github.com/Script-Hub-Org/Script-Hub / delay

Function delay

SurgeModuleTool.js:15–19  ·  view source on GitHub ↗
(milliseconds)

Source from the content-addressed store, hash-verified

13}
14
15async function delay(milliseconds) {
16 var before = Date.now()
17 while (Date.now() < before + milliseconds) {}
18 return true
19}
20function convertToValidFileName(str) {
21 // 替换非法字符为下划线
22 const invalidCharsRegex = /[\/:*?"<>|]/g

Callers 1

SurgeModuleTool.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected