/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-executionctx-9dc415b929d1-executionctx-s0564-c0000.md
executionCtx - hono-docs
executionCtx Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt executionctx Summary You can access...
executionCtx
Source evidence: /Sources/raw/honojshono/honojshono.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
}
}