class documentation

class SyncOperationHandler(OperationHandler[InputT, OutputT]):

Constructor: SyncOperationHandler(start)

View In Hierarchy

An nexusrpc.handler.OperationHandler that is limited to responding synchronously.

The name 'SyncOperationHandler' means that it responds synchronously, in the sense that the start method delivers the final operation result as its return value, rather than returning an operation token representing an in-progress operation.

This version of the class uses def methods. For the async version, see nexusrpc.handler.SyncOperationHandler.

Method __init__ Undocumented
Method cancel Undocumented
Method fetch_info Undocumented
Method fetch_result Undocumented
Method start Start the operation and return its final result synchronously.
Instance Variable _start Undocumented
def __init__(self, start: Callable[[StartOperationContext, InputT], OutputT]):

Undocumented

def cancel(self, ctx: CancelOperationContext, token: str):

Undocumented

def fetch_info(self, ctx: FetchOperationInfoContext, token: str) -> OperationInfo:

Undocumented

def fetch_result(self, ctx: FetchOperationResultContext, token: str) -> OutputT:

Undocumented

def start(self, ctx: StartOperationContext, input: InputT) -> StartOperationResultSync[OutputT]:

Start the operation and return its final result synchronously.

_start =

Undocumented