Class: Wiretap::Signal
- Inherits:
-
Object
- Object
- Wiretap::Signal
- 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
- #complete ⇒ Object
- #error ⇒ Object
-
#initialize ⇒ Signal
constructor
A new instance of Signal.
- #next(value) ⇒ Object
Constructor Details
#initialize ⇒ Signal
Returns a new instance of Signal.
8 9 |
# File 'lib/motion-wiretap/all/signal.rb', line 8 def initialize end |
Instance Method Details
#complete ⇒ Object
14 15 |
# File 'lib/motion-wiretap/all/signal.rb', line 14 def complete end |
#error ⇒ Object
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 |