# ReentrantLock<!-- -->

A reentrant lock implementation for asyncio using asyncio.Lock.

## Index[](#Index)

### Methods

* [\_\_call\_\_](https://docs.apify.com/sdk/python/reference/class/ReentrantLock.md#__call__)
* [\_\_init\_\_](https://docs.apify.com/sdk/python/reference/class/ReentrantLock.md#__init__)

## Methods<!-- -->[](#Methods)

### [](#__call__)[](https://github.com/apify/apify-sdk-python/blob/c674a4d42ade9c1a07f33062b6702497cd34b19d//src/apify/_utils.py#L131)\_\_call\_\_

* async **\_\_call\_\_**(): AsyncGenerator\[None]

- Acquire the lock if it's not already owned by the current task, otherwise proceed without acquiring.

  ***

  #### Returns AsyncGenerator\[None]

### [](#__init__)[](https://github.com/apify/apify-sdk-python/blob/c674a4d42ade9c1a07f33062b6702497cd34b19d//src/apify/_utils.py#L126)\_\_init\_\_

* **\_\_init\_\_**(): None

- #### Returns None
