Method: Temporalio::Activity::Context#initialize
- Defined in:
- lib/temporalio/activity/context.rb
#initialize(info, heartbeat_proc, interceptors, shielded: false) ⇒ Context
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Context.
9 10 11 12 13 14 15 16 17 |
# File 'lib/temporalio/activity/context.rb', line 9 def initialize(info, heartbeat_proc, interceptors, shielded: false) @thread = Thread.current @info = info @heartbeat_proc = heartbeat_proc @interceptors = interceptors @pending_cancellation = nil @shielded = shielded @mutex = Mutex.new end |