Module: Farce::Shareable
- Included in:
- Envelope, Local::Molecule, Local::Scoped, Molecule, Delegated, Immutable, Native, Tracked, Unfreezable, Farce::Strict::Molecule
- Defined in:
- lib/farce/shareable.rb
Overview
Mixin that makes sure instances are shareable between Ractors.
Defined Under Namespace
Modules: Delegated, Immutable, Native, Tracked, Unfreezable
Instance Method Summary collapse
-
#initialize ⇒ BasicObject
Make sure to call
superif you include this module. -
#ractor_shareable? ⇒ Boolean
True.
Instance Method Details
#initialize ⇒ BasicObject
Make sure to call super if you include this module.
Accepts any arguments and passes them on to the superclass initializer.
136 137 138 139 |
# File 'lib/farce/shareable.rb', line 136 def initialize(...) super publish_shareable end |
#ractor_shareable? ⇒ Boolean
Returns true.
143 |
# File 'lib/farce/shareable.rb', line 143 def ractor_shareable? = true |