class documentation
class SyncOperationHandler(OperationHandler[
Constructor: SyncOperationHandler(start)
An OperationHandler
that is limited to responding synchronously.
This version of the class uses async def
methods. For the syncio version, see
nexusrpc.handler._syncio.SyncOperationHandler
.
Method | __init__ |
Undocumented |
Async Method | cancel |
Cancel the operation. |
Async Method | fetch |
Return information about the current status of the operation. |
Async Method | fetch |
Return the result of the operation. |
Async Method | start |
Start the operation and return its final result synchronously. |
Instance Variable | _start |
Undocumented |
async def start(self, ctx:
StartOperationContext
, input: InputT
) -> StartOperationResultSync[ OutputT]
:
¶
overrides
nexusrpc.handler.OperationHandler.start
Start the operation and return its final result 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 async def
methods. For the syncio
version, see nexusrpc.handler.syncio.SyncOperationHandler
.