mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2025-12-13 04:01:14 +00:00
10 lines
No EOL
258 B
TypeScript
10 lines
No EOL
258 B
TypeScript
export function wait(milliseconds: number) {
|
|
return new Promise((resolve) => {
|
|
if (isNaN(milliseconds)) {
|
|
throw new Error('milleseconds not a number');
|
|
}
|
|
|
|
setTimeout(() => resolve("done!"), milliseconds)
|
|
});
|
|
}
|
|
|