File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -5116,19 +5116,18 @@ def _to_proto(self) -> temporalio.bridge.proto.common.VersioningIntent.ValueType
5116
5116
class NexusClient (ABC , Generic [ServiceT ]):
5117
5117
"""A client for invoking Nexus operations.
5118
5118
5119
- Example:
5120
- ```python
5121
- nexus_client = workflow.create_nexus_client(
5122
- endpoint=my_nexus_endpoint,
5123
- service=MyService,
5124
- )
5125
- handle = await nexus_client.start_operation(
5126
- operation=MyService.my_operation,
5127
- input=MyOperationInput(value="hello"),
5128
- schedule_to_close_timeout=timedelta(seconds=10),
5129
- )
5130
- result = await handle.result()
5131
- ```
5119
+ Example::
5120
+
5121
+ nexus_client = workflow.create_nexus_client(
5122
+ endpoint=my_nexus_endpoint,
5123
+ service=MyService,
5124
+ )
5125
+ handle = await nexus_client.start_operation(
5126
+ operation=MyService.my_operation,
5127
+ input=MyOperationInput(value="hello"),
5128
+ schedule_to_close_timeout=timedelta(seconds=10),
5129
+ )
5130
+ result = await handle.result()
5132
5131
"""
5133
5132
5134
5133
# Overload for nexusrpc.Operation
You can’t perform that action at this time.
0 commit comments