Skip to content

Commit 6d98091

Browse files
committed
Renaming event context to request context
Clarifying request context extends at least 60s after last client disconnect.
1 parent 93e7407 commit 6d98091

File tree

5 files changed

+648
-623
lines changed

5 files changed

+648
-623
lines changed

src/content/docs/durable-objects/api/state.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ export class MyDurableObject extends DurableObject {
5353

5454
### `waitUntil`
5555

56-
`waitUntil` waits until the promise which is passed as a parameter resolves and can extends an <GlossaryTooltip term= "event context">event context</GlossaryTooltip> up to 30 seconds after the last client disconnects.
56+
`waitUntil` waits until the promise which is passed as a parameter resolves and can extend a <GlossaryTooltip term= "request context">request context</GlossaryTooltip> up to 30 seconds after the last client disconnects.
5757

5858
:::note[`waitUntil` is not necessary]
5959

60-
The event context for a Durable Objects extends at least 60 seconds after the last client disconnects. So `waitUntil` is not necessary. It remains part of the `DurableObjectState` interface to remain compatible with [Workers Runtime APIs](/workers/runtime-apis/context/#waituntil).
60+
The request context for a Durable Objects extends at least 60 seconds after the last client disconnects. So `waitUntil` is not necessary. It remains part of the `DurableObjectState` interface to remain compatible with [Workers Runtime APIs](/workers/runtime-apis/context/#waituntil).
6161

6262
:::
6363

src/content/docs/pages/framework-guides/deploy-an-analog-site.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export default defineConfig({
7979
});
8080
```
8181

82-
This module in turn loads a plugin which adds bindings to the event context in dev:
82+
This module in turn loads a plugin which adds bindings to the request context in dev:
8383

8484
```typescript
8585
import { NitroApp } from "nitropack";

0 commit comments

Comments
 (0)