Skip to content

Commit b955aa8

Browse files
Improve docs on NexusOperationCancellationTypeTryCancel (#1964)
1 parent 22952b3 commit b955aa8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/workflow.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ const (
8585
NexusOperationCancellationTypeAbandon
8686

8787
// NexusOperationCancellationTypeTryCancel - Initiate a cancellation request for the Nexus operation and immediately report cancellation
88-
// to the caller.
88+
// to the caller. Note that it doesn't guarantee that cancellation is delivered to the operation if calling workflow exits before the delivery is done.
89+
// If you want to ensure that cancellation is delivered to the operation, use NexusOperationCancellationTypeWaitRequested.
8990
NexusOperationCancellationTypeTryCancel
9091

9192
// NexusOperationCancellationTypeWaitRequested - Request cancellation of the Nexus operation and wait for confirmation that the request was received.

0 commit comments

Comments
 (0)