Class: Farce::Strict::Lease
- Inherits:
-
Abstract::Lease
- Object
- Abstract::Lease
- Farce::Strict::Lease
- Includes:
- Farce::Shareable::Unfreezable
- Defined in:
- lib/farce/strict/lease.rb
Overview
A Ractor-shareable lease that stores a shareable resource directly. Construction and checkin reject non-shareable resources without freezing them. Checkout coordinates callers. Other references remain usable, so callers must honor the checkout when accessing a mutable resource.
Method Summary
Methods included from Farce::Shareable
#initialize, #ractor_shareable?
Methods inherited from Abstract::Lease
#available?, #checked_out?, #checkin, #checkout, #initialize, #owned?, #retire, #retired?, #try_checkout