Module: Async::App::Component
- Included in:
- Async::App, EventLogger, WebServer
- Defined in:
- lib/async/app/component.rb
Class Method Summary collapse
Instance Method Summary collapse
- #after_init ⇒ Object
- #after_run ⇒ Object
- #init! ⇒ Object
- #run! ⇒ Object
- #start! ⇒ Object
-
#stop! ⇒ Object
TODO: unsubscribe from everything on stop.
Class Method Details
Instance Method Details
#after_init ⇒ Object
23 |
# File 'lib/async/app/component.rb', line 23 def after_init = nil |
#after_run ⇒ Object
24 |
# File 'lib/async/app/component.rb', line 24 def after_run = nil |
#init! ⇒ Object
17 |
# File 'lib/async/app/component.rb', line 17 def init! = nil |
#run! ⇒ Object
18 |
# File 'lib/async/app/component.rb', line 18 def run! = info { "Started" } |
#start! ⇒ Object
10 11 12 13 14 15 |
# File 'lib/async/app/component.rb', line 10 def start! init! after_init run! after_run end |
#stop! ⇒ Object
TODO: unsubscribe from everything on stop
21 |
# File 'lib/async/app/component.rb', line 21 def stop! = info { "Stopped" } |