Module: Tribe

Defined in:
lib/tribe/safe_set.rb,
lib/tribe.rb,
lib/tribe/actor.rb,
lib/tribe/future.rb,
lib/tribe/actable.rb,
lib/tribe/mailbox.rb,
lib/tribe/version.rb,
lib/tribe/registry.rb,
lib/tribe/exceptions.rb,
lib/tribe/actor_state.rb,
lib/tribe/dedicated_actor.rb

Overview

Ruby’s built in Set class may not be thread safe. This class wraps each method to make it so. More methods will be wrapped as needed.

Defined Under Namespace

Modules: Actable Classes: Actor, ActorNameError, ActorShutdownError, ActorState, DedicatedActor, Future, FutureError, Mailbox, Registry, RegistryError, SafeSet

Constant Summary collapse

VERSION =
'0.2.2'

Class Method Summary collapse

Class Method Details

.registryObject



16
17
18
# File 'lib/tribe.rb', line 16

def self.registry
  return @registry ||= Tribe::Registry.new
end

.registry=(val) ⇒ Object



20
21
22
23
# File 'lib/tribe.rb', line 20

def self.registry=(val)
  @registry.dispose if @registry
  @registry = val
end