/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
  }
}
Kinic Wiki
Loading knowledge node
Details

Identity

database
db_23dhmsxlhukv
database_id
db_23dhmsxlhukv
path
/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-executionctx-9dc415b929d1-executionctx-s0564-c0000.md
kind
directory
role
markdown_note
children
0

Metadata

created_at
virtual
updated_at
virtual
etag
virtual
metadata_json
{}

Lint Hints

No lightweight warnings.

Outgoing Links

No outgoing links indexed.

Incoming Links

Select a file node to inspect backlinks.

Raw Source

No raw source path inferred.