forkaround

And find out!

The sleep helper

It looks like this: ```ts const sleep = (n: number) => new Promise((resolve) => setTimeout(resolve, n)); ``` It helps your programs to sleep, you can use it like this: ```ts await sleep(1000); console.log('woke up!') ``` Good night!...

Labels