MCPcopy Create free account
hub / github.com/blacklanternsecurity/webcap / new_task

Function new_task

webcap/helpers.py:14–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12 all_args = list(all_args)
13
14 def new_task():
15 with suppress(IndexError):
16 arg = all_args.pop(0)
17 task = asyncio.create_task(fn(arg, **global_kwargs))
18 tasks[task] = arg
19
20 for _ in range(threads): # Start initial batch of tasks
21 new_task()

Callers 1

task_poolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected