Sign in
apache
/
airflow-checks-action
/
2659d739ce58f7c567ec43b4d3aa52ec72240512
/
.
/
src
/
wait.ts
blob: b169d9abc0d22a5e678503f3bfabbd34ccce588b [
file
] [
log
] [
blame
]
export
async
function
wait
(
milliseconds
:
number
):
Promise
<string>
{
return
new
Promise
(
resolve
=>
{
if
(
isNaN
(
milliseconds
))
{
throw
new
Error
(
'milliseconds not a number'
)
}
setTimeout
(()
=>
resolve
(
'done!'
),
milliseconds
)
})
}