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
async def acquire(key: str) -> TurnLeaseTokenParameters
ParamField
strNo description available.
Returns
ResponseField
TurnLeaseTokenThe result of the operation.
Used By
Source
View on GitHubpraisonaiagents/gateway/protocols.py at line 7394