with Config.set_value("timeout", 10):
# do your stuff
# here we're back to the old value
This doesn't matter for cases where we have a single script. But when we have many components, in different files, doing different things and maybe using different config values, this is very important.
Also, can we easily make this thread-safe?
This doesn't matter for cases where we have a single script. But when we have many components, in different files, doing different things and maybe using different config values, this is very important.
Also, can we easily make this thread-safe?