add implementation
This commit is contained in:
13
ts/index.ts
Normal file
13
ts/index.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import 'typings-global'
|
||||
|
||||
export let delayFor = async <T>(timeInMillisecond: number, passOn?: T) => {
|
||||
await new Promise((resolve, reject) => {
|
||||
setTimeout(
|
||||
() => {
|
||||
resolve()
|
||||
},
|
||||
timeInMillisecond
|
||||
)
|
||||
})
|
||||
return passOn
|
||||
}
|
Reference in New Issue
Block a user