Lock
Also written: threading.Lock
A tool that lets only one thread at a time run a block of code under `with self.lock:`. It stops two agents finishing at once from losing a budget update.
Also written: threading.Lock
A tool that lets only one thread at a time run a block of code under `with self.lock:`. It stops two agents finishing at once from losing a budget update.