MCPcopy
hub / github.com/markedjs/marked / timeout

Function timeout

test/unit/utils.js:1–5  ·  view source on GitHub ↗
(ms = 1)

Source from the content-addressed store, hash-verified

1export async function timeout(ms = 1) {
2 return new Promise(resolve => {
3 setTimeout(resolve, ms);
4 });
5}

Callers 6

preprocessFunction · 0.90
postprocessFunction · 0.90
processAllTokensFunction · 0.90
provideLexerFunction · 0.90
provideParserFunction · 0.90
walkTokensFunction · 0.90

Calls

no outgoing calls

Tested by 6

preprocessFunction · 0.72
postprocessFunction · 0.72
processAllTokensFunction · 0.72
provideLexerFunction · 0.72
provideParserFunction · 0.72
walkTokensFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…