Async update of a state of a dictionary