1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00
ocean.js/src/utils/General.ts
Alex Coseru ee7a45e17a
use compute environments (#1258)
* use compute environments
2022-02-09 19:13:25 +02:00

9 lines
155 B
TypeScript

/**
* Simple blocking sleep function
*/
export async function sleep(ms: number) {
return new Promise((resolve) => {
setTimeout(resolve, ms)
})
}