MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / once

Function once

scripts/proxy-utils.mjs:248–255  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

246}
247
248function once(fn) {
249 let called = false;
250 return (...args) => {
251 if (called) return;
252 called = true;
253 fn(...args);
254 };
255}
256
257function textErrorBody(message) {
258 return {

Callers 11

proxyHttpFunction · 0.85
proxyWebSocketFunction · 0.85
dev-safe.test.tsFile · 0.85
launchBackendOnlyFunction · 0.85
stopChildFunction · 0.85
ingress.test.tsFile · 0.85
racingLauncherFunction · 0.85

Calls

no outgoing calls

Tested by 3

launchBackendOnlyFunction · 0.68
stopChildFunction · 0.68
racingLauncherFunction · 0.68