from .classes import SimpleTimer
import time


def check_until(func_to_check, timeout, check_interval):
    with SimpleTimer(timeout) as timer:
        while not func_to_check() and timer.is_running():
            time.sleep(check_interval)

d5f0907103eaa148b6b284044f105db41cde9f20
<mask token>

<mask token>


def check_until(func_to_check, timeout, check_interval):
    with SimpleTimer(timeout) as timer:
        while not func_to_check() and timer.is_running():
            time.sleep(check_interval)

from .classes import SimpleTimer
import time


def check_until(func_to_check, timeout, check_interval):
    with SimpleTimer(timeout) as timer:
        while not func_to_check() and timer.is_running():
            time.sleep(check_interval)
