Module: Temporal::ThreadLocalContext
- Defined in:
- lib/temporal/thread_local_context.rb
Constant Summary collapse
- WORKFLOW_CONTEXT_KEY =
:temporal_workflow_context
Class Method Summary collapse
Class Method Details
.get ⇒ Object
6 7 8 |
# File 'lib/temporal/thread_local_context.rb', line 6 def self.get Thread.current[WORKFLOW_CONTEXT_KEY] end |
.set(context) ⇒ Object
10 11 12 |
# File 'lib/temporal/thread_local_context.rb', line 10 def self.set(context) Thread.current[WORKFLOW_CONTEXT_KEY] = context end |