Source code for expliot_finder.vulnerability_scanner.core.utils
"""Utils functions used by all core 'vulnerability_scanner' modules."""
__all__ = (
"run_concurrently",
"run_sequence",
)
import asyncio
from typing import Any, Awaitable
[docs]async def run_concurrently(*functions: Awaitable[Any]) -> None:
"""Run coroutines concurrently."""
await asyncio.gather(*functions)
[docs]async def run_sequence(*functions: Awaitable[Any]) -> None:
"""Run coroutines in sequence order."""
for function in functions:
await function