/Knowledge/sources/honojs__hono/llms-full/context-executionctx--2747d77ea1c4.md
Context: executionCtx - hono-docs
Context: executionCtx Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt executionctx Summary You can acc...
Context: executionCtx
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#executionctx
Summary
You can access Cloudflare Workers' specific ExecutionContext. ```ts twoslash import { Hono } from 'hono' const app = new Hono () declare const key: string declare const d...
Content
You can access Cloudflare Workers' specific ExecutionContext.
import { Hono } from 'hono'
const app = new Hono<{
Bindings: {
KV: any
}
}>()
declare const key: string
declare const data: string
// ---cut---
// ExecutionContext object
app.get('/foo', async (c) => {
c.executionCtx.waitUntil(c.env.KV.put(key, data))
// ...
})
The ExecutionContext also has an exports field. To get autocomplete with Wrangler's generated types, you can use module augmentation:
import 'hono'
declare module 'hono' {
interface ExecutionContext {
readonly exports: Cloudflare.Exports
}
}
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#executionctx",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / Context > executionCtx",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 564,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "Context: executionCtx",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}