def _get_klass_lock(cls):
"""
Get a DeferredLock that is unique for this subclass name.
Used to lock the access to indexes in the `get_or_create` call
for a particular DocumentWrapper.
"""
return cls._k_locks[cls.__name__]
评论列表
文章目录