Select the types of activity you want to include in your feed.
1from __future__ import annotations 2 3import os 4 5 6def concurrency_env(name: str, default: int = 20, *, max_cap: int = 64) -> int: 7 raw = os.getenv(name, "").strip() 8 if not raw: 9 return default 10 return max(1, min(max_cap, int(raw)))