MCPcopy
hub / github.com/apify/crawlee / runTaskFunction

Function runTaskFunction

test/core/autoscaling/autoscaled_pool.test.ts:24–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 let isFinished = false;
23
24 const runTaskFunction = async () => {
25 if (range.length === 1) {
26 isFinished = true;
27 }
28
29 return new Promise((resolve) => {
30 const item = range.shift()!;
31 result.push(item);
32 setTimeout(resolve, 5);
33 });
34 };
35
36 const pool = new AutoscaledPool({
37 minConcurrency: 1,

Callers

nothing calls this directly

Calls 2

sleepFunction · 0.90
pushMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…