> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# acquire • AI Agent SDK

> acquire: Block until the lease for ``key`` is held; return its token.

# acquire

AsyncMethod

> This is a method of the [**TurnLockProtocol**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/TurnLockProtocol.md) class in the [**protocols**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/protocols.md) module.

Block until the lease for `key` is held; return its token.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def acquire(key: str) -> TurnLeaseToken
```

## Parameters

**key** `str` *required*

No description available.

### Returns

**Returns** `TurnLeaseToken`

The result of the operation.

## Used By

* [`LocalTurnLock.acquire`](../functions/LocalTurnLock-acquire)

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L7394)
>
> `praisonaiagents/gateway/protocols.py` at line 7394


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.