Class: Temporalio::Workflow::NexusOperationHandle

Inherits:
Object
  • Object
show all
Defined in:
lib/temporalio/workflow/nexus_operation_handle.rb

Overview

Handle for interacting with a Nexus operation.

This is created via Temporalio::Workflow::NexusClient#start_operation, it is never instantiated directly.

WARNING: Nexus support is experimental.

Instance Method Summary collapse

Instance Method Details

#operation_tokenString?

Returns Operation token for async operations, nil for sync operations.

Returns:

  • (String, nil)

    Operation token for async operations, nil for sync operations.

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/temporalio/workflow/nexus_operation_handle.rb', line 17

def operation_token
  raise NotImplementedError
end

#result(result_hint: nil) ⇒ Object

Wait for the result.

Parameters:

  • result_hint (Object, nil) (defaults to: nil)

    Override the result hint, or if nil uses the one on the handle.

Returns:

  • (Object)

    Result of the Nexus operation.

Raises:



32
33
34
# File 'lib/temporalio/workflow/nexus_operation_handle.rb', line 32

def result(result_hint: nil)
  raise NotImplementedError
end

#result_hintObject?

Returns Hint for the result if any.

Returns:

  • (Object, nil)

    Hint for the result if any.

Raises:

  • (NotImplementedError)


22
23
24
# File 'lib/temporalio/workflow/nexus_operation_handle.rb', line 22

def result_hint
  raise NotImplementedError
end