mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-11 10:46:52 +00:00
7 lines
253 B
TypeScript
7 lines
253 B
TypeScript
/**
|
|
* Waits a given number of seconds before resolving
|
|
* @param {number} seconds the duration to wait for
|
|
* @return {Promise<void>}
|
|
*/
|
|
export const delay = (seconds = 5): Promise<void> => new Promise(resolve => setTimeout(resolve, seconds * 1000));
|