1
0
mirror of https://github.com/robonen/tools.git synced 2026-03-20 10:54:44 +00:00

refactor(packages/vue): use another way to provide state at app level in useContextFactory

This commit is contained in:
2025-02-22 23:35:20 +07:00
parent 5594cef31e
commit 30b72fb2f0
3 changed files with 18 additions and 10 deletions

View File

@@ -13,6 +13,8 @@
* sleep(1000).then(() => {
* console.log('Hello, World!');
* });
*
* @since 0.0.3
*/
export function sleep(ms: number): Promise<void> {
return new Promise((resolve) => setTimeout(resolve, ms));