Python 3.9 is now generally available.

google.appengine.api.apiproxy_stub.Synchronized

Decorator to acquire a mutex around an APIProxyStub method.

method An unbound method of APIProxyStub or a subclass.

The method, altered such it acquires self._mutex throughout its execution.