Skip to content

Commit 08ac85e

Browse files
npaunirvinebroque
andcommitted
Apply improved wording from @irvinebroque
Co-authored-by: Brendan Irvine-Broque <[email protected]>
1 parent f7ae260 commit 08ac85e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/changelog/workers/2025-03-14-handle-request-cancellation.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Handle request cancellation with Request.signal
2+
title: Handle incoming request cancellation in Workers with Request.signal
33
description: Workers can now add event listeners on Request.signal and perform tasks when the request is cancelled
44
products:
55
- workers
@@ -8,9 +8,9 @@ date: 2025-03-14T01:00:00Z
88

99
import { Render, TypeScriptExample } from "~/components";
1010

11-
`Request` objects now have a `signal` property. You can now attach an event listener to the `signal` and perform tasks when the request to your Worker is canceled by the client.
11+
In Cloudflare Workers, you can now attach an event listener to [`Request`](/workers/runtime-apis/request/) objects, using the [`signal` property](https://developer.mozilla.org/en-US/docs/Web/API/Request/signal), and perform tasks when the request to your Worker is canceled by the client.
1212

13-
This lets you do things like clean up after the request or write to logs before your Worker is aborted.
13+
This allows you to perform cleanup tasks or write to logs before your Worker's invocation ends. For example, if you run the Worker below, and then abort the request from the client, a log will be written:
1414

1515
<TypeScriptExample filename="index.ts">
1616
```ts

0 commit comments

Comments
 (0)