tiny-rdm/frontend/src/utils/promise.js

4 lines
96 B
JavaScript

export const timeout = (ms) => {
return new Promise((resolve) => setTimeout(resolve, ms))
}