Set TimeOut - Typescript

date
Mar 16, 2022
slug
set-timeout-typescript
status
Published
tags
Typescript
Development
summary
Add an async timeout in typescript
type
Post
Add the following code to an async function.
await new Promise((resolve) => setTimeout(resolve, 2000));
 

© musaid 2022