mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
9 lines
155 B
TypeScript
9 lines
155 B
TypeScript
/**
|
|
* Simple blocking sleep function
|
|
*/
|
|
export async function sleep(ms: number) {
|
|
return new Promise((resolve) => {
|
|
setTimeout(resolve, ms)
|
|
})
|
|
}
|