mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-06 02:43:33 +00:00
7 lines
177 B
JavaScript
7 lines
177 B
JavaScript
/** Promise-based sleep that preserves the native global timer contract. */
|
|
export function sleep(ms) {
|
|
return new Promise((resolve) => {
|
|
setTimeout(resolve, ms);
|
|
});
|
|
}
|