nexusrpc.handler._core.AbstractHandler

class documentation

Warning

This API is experimental and may change in the future.

Method cancel_operation Handle a Cancel Operation request.
Method start_operation Undocumented

@abstractmethod

def cancel_operation(self, ctx: CancelOperationContext, token: str) -> None | Awaitable[None]:

Handle a Cancel Operation request.

Parameters
ctx:CancelOperationContextThe operation context.
token:strThe operation token.
Returns
None | Awaitable[None]Undocumented

@abstractmethod

def start_operation(self, ctx: StartOperationContext, input: LazyValueT) -> StartOperationResultSync[Any] | StartOperationResultAsync | Awaitable[StartOperationResultSync[Any] | StartOperationResultAsync]: