MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / settle

Function settle

scripts/experimental/swiftui-preview.mjs:563–571  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

561 let settled = false;
562 let response = "";
563 const settle = (value) => {
564 if (settled) {
565 return;
566 }
567 settled = true;
568 clearTimeout(timer);
569 socket.destroy();
570 resolve(value);
571 };
572 const timer = setTimeout(() => {
573 settle(false);
574 }, 500);

Callers 1

sendTcpMessageToPortFunction · 0.85

Calls 1

destroyMethod · 0.65

Tested by

no test coverage detected