Concurrent::Transaction — Transaction management for concurrent programming
| Use Case | Command | Description |
|---|---|---|
| Create a new transaction | Concurrent::Transaction.new | 📦 Instantiate a transaction object |
| Read a value within transaction | transaction.read | 🔍 Read a value (uses transactional memory) |
| Write a value within transaction | transaction.write | ✍️ Write a value (staged until commit) |
| Commit the transaction | transaction.commit | ✅ Apply all writes atomically |
| Abort the transaction | transaction.abort | ❌ Cancel the transaction, raising AbortError |
| Unlock held resources | transaction.unlock | 🔓 Release locks acquired during transaction |
| Check if transaction is still valid | transaction.valid? | ✅ Returns true if transaction has not been aborted |
ABORTED — [not documented]AbortError — [not documented]LeaveError — [not documented]ReadLogEntry — [not documented]currentcurrent=newabortcommitreadunlockvalid?writeGenerated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-28 11:31 @216.73.217.46
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format