Class: Temporal::Runtime
- Inherits:
-
Object
- Object
- Temporal::Runtime
- Includes:
- Singleton
- Defined in:
- lib/temporal/runtime.rb
Instance Attribute Summary collapse
-
#core_runtime ⇒ Object
readonly
Returns the value of attribute core_runtime.
Instance Method Summary collapse
- #ensure_callback_loop ⇒ Object
-
#initialize ⇒ Runtime
constructor
A new instance of Runtime.
Constructor Details
#initialize ⇒ Runtime
Returns a new instance of Runtime.
10 11 12 |
# File 'lib/temporal/runtime.rb', line 10 def initialize @core_runtime = Temporal::Bridge::Runtime.init end |
Instance Attribute Details
#core_runtime ⇒ Object (readonly)
Returns the value of attribute core_runtime.
8 9 10 |
# File 'lib/temporal/runtime.rb', line 8 def core_runtime @core_runtime end |
Instance Method Details
#ensure_callback_loop ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/temporal/runtime.rb', line 14 def ensure_callback_loop return if @thread @thread = Thread.new do core_runtime.run_callback_loop end end |