class documentation

class NexusOperationHandle(Generic[OutputT]): (source)

Known subclasses: temporalio.worker._workflow_instance._NexusOperationHandle

View In Hierarchy

Handle for interacting with a Nexus operation.

Warning

This API is experimental and unstable.

Method __await__ Support await.
Method cancel Request cancellation of the operation.
Property operation_token The operation token for this handle.
def __await__(self) -> Generator[Any, Any, OutputT]: (source)
def cancel(self) -> bool: (source)

Request cancellation of the operation.

@property
operation_token: str | None = (source)

The operation token for this handle.