MCPcopy Create free account
hub / github.com/SmartThingsCommunity/smartthings-cli / delay

Function delay

src/lib/util.ts:38–38  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

36export const sanitize = (input?: string): string => input?.replace(/[\W]/g, '') ?? ''
37
38export const delay = async (ms: number): Promise<void> => new Promise(resolve => setTimeout(resolve, ms))
39
40export const fatalError = (error?: string | Error, code = 1): never => {
41 if (error) {

Callers 2

loginFunction · 0.85
util.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected