dralkh_spaceforge/utils/sleep.ts
dralkh 4cbc58b5fa refactor: consolidate styles and improve UI components
- Split styles.css into modular component files
- Update UI components to use new modular CSS structure
- Remove deprecated main.js file
- Add sleep utility function
- Enhance calendar and modal components
- Update navigation controller and event handling
2025-10-13 10:45:31 +03:00

8 lines
No EOL
284 B
TypeScript

/**
* Utility function for sleeping/delaying execution
* @param ms Number of milliseconds to sleep
* @returns Promise that resolves after the specified delay
*/
export function sleep(ms: number): Promise<void> {
return new Promise(resolve => window.setTimeout(resolve, ms));
}