Class: Farce::Strict::LeasePool
- Inherits:
-
Abstract::LeasePool
- Object
- Abstract::LeasePool
- Farce::Strict::LeasePool
- Includes:
- Farce::Shareable::Unfreezable
- Defined in:
- lib/farce/strict/lease_pool.rb
Overview
A Ractor-shareable pool that stores shareable resources directly. Factory results and checkin replacements must be shareable. They are not automatically frozen. Other references remain usable during checkout, so callers must honor the checkout when accessing mutable resources.
Instance Attribute Summary
Attributes inherited from Abstract::LeasePool
Method Summary
Methods included from Farce::Shareable
#initialize, #ractor_shareable?
Methods inherited from Abstract::LeasePool
#available_count, #checked_out_count, #checkin, #checkout, #creating_count, #initialize, #size, #try_checkout