def call_with_timeout()

in dcrpm/util.py [0:0]


def call_with_timeout(
    func,  # type: t.Callable[..., t.TypeVar("RT")]
    timeout,  # type: int
    args=None,  # type: t.Optional[t.Iterable[str]]
    # pyre-ignore[2]: kwargs has type dict[str, Any]
    kwargs=None,  # type: t.Optional[t.Dict[str, t.Any]]