MCPcopy Create free account
hub / github.com/alibaba/open-code-review / sleep

Function sleep

scripts/github-actions/post-review-comments.js:1055–1057  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

1053// ---- Rate-limit / retry helpers (ported verbatim) ----
1054
1055function sleep(ms) {
1056 return new Promise((resolve) => setTimeout(resolve, ms));
1057}
1058
1059// Parse a non-negative integer env value, falling back to defaultVal when the
1060// value is missing, NaN, or negative. Unlike `parseInt(...) || default`, this

Callers 5

publishBatchFunction · 0.85
withRetryFunction · 0.85
readWithPacingFunction · 0.85
cooldownAndReconcileFunction · 0.85
publishFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected