wait_until_key_removed

data_base.utils.wait_until_key_removed(db, key, delay=5)

Wait until a key is removed from a database.

This function checks every delay seconds if the key is still in the database. Useful for waiting until a process has finished.

Parameters:
db : sqlitedict

the database

key : str

the key

delay : int

the delay between checks

Returns:

None