class Temporalio::Client::AsyncActivityHandle

def report_cancellation(*details, rpc_options: nil)

Raises:
  • (AsyncActivityCanceledError) - If the activity has been canceled.

Parameters:
  • rpc_options (RPCOptions, nil) -- Advanced RPC options.
  • details (Array) -- Cancellation details.
    def report_cancellation(*details, rpc_options: nil)
      @client._impl.report_cancellation_async_activity(Interceptor::ReportCancellationAsyncActivityInput.new(
                                                         task_token_or_id_reference:,
                                                         details:,
                                                         rpc_options:
                                                       ))
    end