Class: Farce::SortedSet
- Inherits:
-
Abstract::SortedSet
- Object
- Abstract::Collection
- Abstract::Set
- Abstract::SortedSet
- Farce::SortedSet
- Includes:
- Farce::Shareable::Delegated
- Defined in:
- lib/farce/sorted_set.rb
Overview
A Ractor-shareable concurrent set maintained in ascending order.
Membership uses <=>. Comparator-equivalent elements occupy one slot.
Transfer modes have the same behavior and restrictions as Farce::Set.
Instance Method Summary collapse
-
#mode ⇒ Symbol
The default transfer mode for elements.
Methods included from Shareable
#initialize, #ractor_shareable?
Methods inherited from Abstract::SortedSet
#==, #eql?, #hash, #initialize, #intersect?, #intersection, #proper_subset?, #proper_superset?, #subset?, #subtract, #superset?
Methods inherited from Abstract::Set
#<=>, #==, #^, #add, #add?, #as_extended_json, #as_json, #bson_type, #classify, #clear, #compact_blank, #compact_blank!, #compare_by_identity?, #deep_dup, #delete, #delete?, #delete_if, #difference, #disjoint?, #divide, #duplicable?, #each, #eql?, #excluding, #flatten, #hash, #include?, #including, #initialize, #intersect?, #intersection, #keep_if, #merge, #proper_subset?, #proper_superset?, #reject, #reject!, #select, #select!, #size, #subset?, #subtract, #superset?, #to_a, #to_bson, #to_bson_normalized_value, #to_cbor, #to_json, #to_msgpack, #to_param, #to_query, #to_set, #union, #weak?
Methods inherited from Abstract::Collection
#<<, [], #clear, #compare_by_identity?, #count, #each, #empty?, #filter, #include?, #join, #length, #member?, #reject, #select, #size, #to_a, #to_s
Methods included from Internal::Copyable
Instance Method Details
#mode ⇒ Symbol
The default transfer mode for elements.
18 |
# File 'lib/farce/sorted_set.rb', line 18 def mode = @manager.mode |