Class: Rapid::Model::EmUpdateChannel

Inherits:
UpdateChannel show all
Extended by:
Forwardable
Defined in:
lib/ury_rapid/model/update_channel.rb

Overview

An EventMachine-based update channel

By default, the update channel sends to a newly constructed, internal EventMachine Channel; this can be changed.

Instance Method Summary collapse

Methods inherited from UpdateChannel

#notify_delete, #notify_update

Constructor Details

#initialize(in_em_channel = nil) ⇒ EmUpdateChannel


93
94
95
96
# File 'lib/ury_rapid/model/update_channel.rb', line 93

def initialize(in_em_channel = nil)
  super()
  @em_channel = in_em_channel || EventMachine::Channel.new
end