app/src/k8s/__init__.py
def _poll_resource(predicate: Predicate, fn: Callable, *args, **kwargs) \
        -> Coroutine:
    """Polls fn in random intervals until fn's return satisfies a predicate.

    Args:
        predicate: Function Any -> bool
        fn: Any function.
        *args: Positional args for fn.
        **kwargs: Key word args for fn.

    Returns:
        Coroutine which polls fn in random intervals and sleeps in between.
        The Coroutine halts if predicate is satisfied by fn's return.
    """
    async def _reconciled():
        done = False
        while not done:
            done = check_resource(predicate, fn, *args, **kwargs)
            await asyncio.sleep(random.uniform(3, 6))
    return _reconciled()
Polls fn in random intervals until fn's return satisfies a predicate.

    Args:
        predicate: Function Any -> bool
        fn: Any function.
        *args: Positional args for fn.
        **kwargs: Key word args for fn.

    Returns:
        Coroutine which polls fn in random intervals and sleeps in between.
        The Coroutine halts if predicate is satisfied by fn's return.
    
Polls fn in random intervals until fn's return satisfies a predicate.
Polls fn in random intervals until fn ' s return satisfies a predicate .
def _poll_resource(predicate: Predicate, fn: Callable, *args, **kwargs) \
        -> Coroutine:
    async def _reconciled():
        done = False
        while not done:
            done = check_resource(predicate, fn, *args, **kwargs)
            await asyncio.sleep(random.uniform(3, 6))
    return _reconciled()
def _poll_resource ( predicate : Predicate , fn : Callable , * args , ** kwargs ) -> Coroutine : async def _reconciled ( ) : done = False while not done : done = check_resource ( predicate , fn , * args , ** kwargs ) await asyncio . sleep ( random . uniform ( 3 , 6 ) ) return _reconciled ( )
Polls fn in random intervals until fn's return satisfies a predicate.
Polls fn in random intervals until fn ' s return satisfies a predicate .
"""Polls fn in random intervals until fn's return satisfies a predicate.

    Args:
        predicate: Function Any -> bool
        fn: Any function.
        *args: Positional args for fn.
        **kwargs: Key word args for fn.

    Returns:
        Coroutine which polls fn in random intervals and sleeps in between.
        The Coroutine halts if predicate is satisfied by fn's return.
    """
Coroutine which polls fn in random intervals and sleeps in between.
The Coroutine halts if predicate is satisfied by fn's return.
Coroutine which polls fn in random intervals and sleeps in between . The Coroutine halts if predicate is satisfied by fn ' s return .
predicate
Predicate
Function Any -> bool
Function Any - > bool
fn
Callable
None
*args
Positional args for fn.
Positional args for fn .
**kwargs
Key word args for fn.
Key word args for fn .