MCPcopy
hub / github.com/omkarcloud/botasaurus / sleep

Function sleep

js/botasaurus-js/src/utils.ts:71–73  ·  view source on GitHub ↗
(retryWait: number)

Source from the content-addressed store, hash-verified

69}
70
71export function sleep(retryWait: number) {
72 return new Promise((resolve) => setTimeout(resolve, retryWait * 1000))
73}
74
75export function isNullish(value: any): boolean {
76 return value === null || value === undefined

Callers 15

runTaskFunction · 0.90
runPlaywrightFunction · 0.90
checkMasterHealthFunction · 0.90
scrapingFunctionFunction · 0.90
executeSyncTaskFunction · 0.90
executeSyncTasksFunction · 0.90
task.jsFile · 0.50
do_moveMethod · 0.50
random_natural_sleepMethod · 0.50
_clickMethod · 0.50
scroll_to_elementMethod · 0.50
run_taskFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected