Class: Slack::RealTime::Concurrency::Celluloid::Socket::Actor

Inherits:
Object
  • Object
show all
Defined in:
lib/slack/real_time/concurrency/celluloid.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(future) ⇒ Actor

Returns a new instance of Actor.



87
88
89
# File 'lib/slack/real_time/concurrency/celluloid.rb', line 87

def initialize(future)
  @future = future
end

Instance Attribute Details

#futureObject (readonly)

Returns the value of attribute future.



85
86
87
# File 'lib/slack/real_time/concurrency/celluloid.rb', line 85

def future
  @future
end

Instance Method Details

#joinObject



91
92
93
# File 'lib/slack/real_time/concurrency/celluloid.rb', line 91

def join
  @future.value
end