Software Development
AI Core/Locks
LockStore, InMemoryLockStore, LocksCapability and withLocks for multi-instance coordination in TanStack AI. Ships in @tanstack/ai — NOT in @tanstack/ai-persistence. Separate from AIPersistence state stores — not a stores key, not composable. InMemoryLockStore vs a distributed (e.g. Cloudflare Durable Object) lock, lease recovery, AbortSignal in critical sections. Use when sandbox or other middleware needs cross-worker mutual exclusion — NOT for storing messages/runs (use withPersistence).
- Publisher / source
- TanStack/ai (found on GitHub top repositories)
- Upstream record
- TanStack/ai
- Version
- Version 1
- Published
- Publication review
- Approved for publication
- Content fingerprint
244042d4b04d0fd1b96f25fde3fad8c38e087c01967a5638f46d1107c3ba3b28