Skip to content

Commit 68c0d63

Browse files
committed
Adjust cancellation spec to link to tasks spec for task cancellation
1 parent 11bc887 commit 68c0d63

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/specification/draft/basic/utilities/cancellation.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,17 @@ notification containing:
3434
1. Cancellation notifications **MUST** only reference requests that:
3535
- Were previously issued in the same direction
3636
- Are believed to still be in-progress
37-
2. The `initialize` request **MUST NOT** be cancelled by clients
38-
3. Receivers of cancellation notifications **SHOULD**:
37+
1. The `initialize` request **MUST NOT** be cancelled by clients
38+
1. For [task-augmented requests](./tasks), the `tasks/cancel` request **MUST** be used instead of the `notifications/cancelled` notification. Tasks have their own dedicated cancellation mechanism that returns the final task state.
39+
1. Receivers of cancellation notifications **SHOULD**:
3940
- Stop processing the cancelled request
4041
- Free associated resources
4142
- Not send a response for the cancelled request
42-
4. Receivers **MAY** ignore cancellation notifications if:
43+
1. Receivers **MAY** ignore cancellation notifications if:
4344
- The referenced request is unknown
4445
- Processing has already completed
4546
- The request cannot be cancelled
46-
5. The sender of the cancellation notification **SHOULD** ignore any response to the
47+
1. The sender of the cancellation notification **SHOULD** ignore any response to the
4748
request that arrives afterward
4849

4950
## Timing Considerations

0 commit comments

Comments
 (0)