Add URL comment for sleep

This commit is contained in:
Wolfgang Huß 2022-08-22 11:45:51 +02:00
parent f9c8c9b4be
commit b3c179011a

View File

@ -10,6 +10,7 @@ export function gql(strings) {
// sometime we have to wait to check a db state by having a look into the db in a certain moment
// or we wait a bit to check if we missed to set an await somewhere
// see: https://www.sitepoint.com/delay-sleep-pause-wait/
export function sleep(ms) {
return new Promise((resolve) => setTimeout(resolve, ms))
}