class documentation

class TemporalOperationResult(Generic[_ResultT]): (source)

View In Hierarchy

Unified result: sync value or async token.

Warning

This API is experimental and unstable.

Class Method async_token Create a result that completes the Nexus operation asynchronously.
Class Method sync Create a result that completes the Nexus operation synchronously.
Method __post_init__ Validate that the result represents exactly one completion mode.
Class Variable token Undocumented
Method _to_nexus_result Undocumented
def async_token(cls, token: str) -> Self: (source)

Create a result that completes the Nexus operation asynchronously.

def sync(cls, value: _ResultT) -> Self: (source)

Create a result that completes the Nexus operation synchronously.

def __post_init__(self): (source)

Validate that the result represents exactly one completion mode.

Undocumented

def _to_nexus_result(self) -> StartOperationResultSync[_ResultT] | StartOperationResultAsync: (source)

Undocumented