MCPcopy Index your code
hub / github.com/browserless/browserless / handler

Function handler

src/limiter.spec.ts:227–228  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

225 let timer: NodeJS.Timer;
226 const limiter = new Limiter(config, metrics, monitoring, webHooks, hooks);
227 const handler = () =>
228 new Promise((d) => (timer = global.setTimeout(d, 1000)));
229
230 const onTimeout = (...calledArgs: unknown[]) => {
231 clearTimeout(timer as unknown as number);

Callers 5

wrapWithAfterHookMethod · 0.85
wrapHTTPHandlerMethod · 0.85
wrapWebSocketHandlerMethod · 0.85
handlerMethod · 0.85
handlerMethod · 0.85

Calls 1

setTimeoutMethod · 0.80

Tested by

no test coverage detected