MCPcopy
hub / github.com/Koenkk/zigbee2mqtt / restart

Function restart

index.js:43–46  ·  view source on GitHub ↗

@type {() => Promise }

()

Source from the content-addressed store, hash-verified

41
42/** @type {() => Promise<void>} */
43async function restart() {
44 await stop(true);
45 await start();
46}
47
48/** @type {(code: number, restart?: boolean) => Promise<void>} */
49async function exit(code, restart = false) {

Callers

nothing calls this directly

Calls 2

stopFunction · 0.70
startFunction · 0.70

Tested by

no test coverage detected