Class: Wiretap::Signal

Inherits:
Object
  • Object
show all
Defined in:
lib/motion-wiretap/all/signal.rb

Overview

a Wiretap::Signal is much like a Promise in functional programming. A Signal is triggered with a new value, or it is completed, or canceled with an error event.

Instance Method Summary collapse

Constructor Details

#initializeSignal

Returns a new instance of Signal.



8
9
# File 'lib/motion-wiretap/all/signal.rb', line 8

def initialize
end

Instance Method Details

#completeObject



14
15
# File 'lib/motion-wiretap/all/signal.rb', line 14

def complete
end

#errorObject



17
18
# File 'lib/motion-wiretap/all/signal.rb', line 17

def error
end

#next(value) ⇒ Object



11
12
# File 'lib/motion-wiretap/all/signal.rb', line 11

def next(value)
end