Class: Temporalio::Testing::TimeSkippingHandle

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/temporalio/testing/time_skipping_handle.rb

Instance Method Summary collapse

Constructor Details

#initialize(handle, env) ⇒ TimeSkippingHandle

Returns a new instance of TimeSkippingHandle.



12
13
14
15
# File 'lib/temporalio/testing/time_skipping_handle.rb', line 12

def initialize(handle, env)
  @handle = handle
  @env = env
end

Instance Method Details

#result(follow_runs: true, rpc_metadata: {}, rpc_timeout: nil) ⇒ Object



17
18
19
20
21
22
23
24
25
# File 'lib/temporalio/testing/time_skipping_handle.rb', line 17

def result(follow_runs: true, rpc_metadata: {}, rpc_timeout: nil)
  env.with_time_skipping do
    handle.result(
      follow_runs: follow_runs,
      rpc_metadata: ,
      rpc_timeout: rpc_timeout,
    )
  end
end