(*, value: Callable[[Any], int])
Generator that is based on parsing the return value or thrown
        exception of the decorated method

    Args:
        value: a callable which takes as input the decorated
            function's return value or thrown exception and
            determines how long to wait
Generator that is based on parsing the return value or thrown
        exception of the decorated method
Generator that is based on parsing the return value or thrown exception of the decorated method
def runtime(*, value: Callable[[Any], int]) -> Generator[int, None, None]:
    """Generator that is based on parsing the return value or thrown
        exception of the decorated method

    Args:
        value: a callable which takes as input the decorated
            function's return value or thrown exception and
            determines how long to wait
    """
    ret_or_exc = yield  # type: ignore[misc]
    while True:
        ret_or_exc = yield value(ret_or_exc)
def runtime ( * , value : Callable [ [ Any ] , int ] ) -> Generator [ int , None , None ] : ret_or_exc = yield # type: ignore[misc] while True : ret_or_exc = yield value ( ret_or_exc )