Class: Farce::Unshared::Molecule

Inherits:
Abstract::Molecule show all
Includes:
Farce::Unshareable
Defined in:
lib/farce/unshared/molecule.rb

Overview

A thread-safe record whose atoms retain values directly within one Ractor. Use Abstract::Molecule.define to declare named fields. Explicitly supplied atoms keep their own storage and comparison policies.

Method Summary

Methods included from Farce::Unshareable

#initialize, #ractor_shareable?

Methods inherited from Abstract::Molecule

atoms, #atoms, compare_by_identity?, #compare_by_identity?, define, #each, #each_atom, #each_member, #each_value, #freeze, #initialize, members, #members