当其一个 promise 从另一个请求中解析时, Idle Durable Object 会以 "IoContext 没有当前的 IncomingRequest" 而终止
作者: FNDEVVE创建于 2026年9月25日更新于 2026年9月25日
// Isolate-wide, like effect/unstable/http/HttpClient's response registry. const registry = new FinalizationRegistry((controller) => controller.abort()); const pending = [];
export class Callee extends DurableObject { // Leaves a promise owned by this IoContext that settles when the controller is aborted. async park(mode) { let settle; new Promise((resolve) => (settle = resolve)).then(() => {}); if (mode === "gc") { const controller = new AbortController(); …
内容来源: cloudflare/workerd