acquire • AI Agent SDK

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

acquire

Async

Method

</div>

This is a method of the TurnLockProtocol class in the protocols module.

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

Signature

python
async def acquire(key: str) -> TurnLeaseToken

Parameters

ParamField str

No description available.

Returns

ResponseField TurnLeaseToken

The result of the operation.

Used By

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 7394