Skip to content

Commit 02961e3

Browse files
Update temporal-nexus.mdx
1 parent 1996873 commit 02961e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/develop/java/temporal-nexus.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,15 +539,15 @@ If ignored, the operation may enter a terminal state.
539539
When a Nexus operation is started the caller can specify different cancellation types that will control how the caller reacts to cancellation:
540540

541541
- `ABANDON` - Do not request cancellation of the operation.
542-
- `TRY_CANCEL` - Initiate a cancellation request and immediately report cancellation to the caller. Note that it doesn't guarantee that cancellation is delivered to the operation handler if the caller exits before the delivery is done.
542+
- `TRY_CANCEL` - Initiate a cancellation request and immediately report cancellation to the caller. Note that this type doesn't guarantee that cancellation is delivered to the operation handler if the caller exits before the delivery is done.
543543
- `WAIT_REQUESTED` ` Request cancellation of the operation and wait for confirmation that the request was received. Doesn't wait for actual cancellation.
544544
- `WAIT_COMPLETED` - Wait for operation completion. Operation may or may not complete as cancelled.
545545

546546
The default is `WAIT_COMPLETED`. Users can set a different option on the `NexusServiceOptions` by calling `.setCancellationType()` on `NexusServiceOptions.Builder`.
547547

548548
Once the caller Workflow completes, the caller's Nexus Machinery stops attempting to cancel operations that have not yet been canceled, letting them run to completion.
549549
It's okay to leave operations running in some use cases.
550-
To ensure cancelations are delivered, wait for all pending operations to deliver their cancellation request before exiting the Workflow.
550+
To ensure cancelations are delivered, wait for all pending operations to deliver their cancellation requests before exiting the Workflow.
551551

552552
See the [Nexus cancelation sample](https://github.com/temporalio/samples-java/tree/main/core/src/main/java/io/temporal/samples/nexuscancellation) for reference.
553553

0 commit comments

Comments
 (0)