Skip to content
Meeko
Type to search the guides and the API reference. Open it from any page with / or Ctrl K; move with the arrow keys and open a result with Enter.
Get started

Contents

On this page

Not translated yet

This page has not been translated into English yet, so it is shown in Spanish.

CloudflareExecutionContext

interfaz

Parte del ExecutionContext de Workers que usa Meeko. Los tipos *Like de esta entrada son estructurales, para compilar y cargar el módulo sin @cloudflare/workers-types ni cloudflare:workers.

ts
import type { CloudflareExecutionContext } from "@meekojs/meeko/cloudflare";

Source code src/cloudflare.ts:40

Declaración #

ts
interface CloudflareExecutionContext {
	waitUntil(promise: Promise<unknown>): void
}

Example #

ts
import type { CloudflareExecutionContext } from "@meekojs/meeko/cloudflare";

export default {
  async scheduled(event: unknown, env: Env, ctx: CloudflareExecutionContext) {
    ctx.waitUntil(new D1SessionDriver(env.DB).deleteExpired());
  },
};

Miembros #

waitUntil #

método

waitUntil(promise: Promise<unknown>): void

Mantiene vivo un trabajo tras la respuesta.

Was this page helpful?

Add a comment

It is sent when you choose “Yes” or “No”. Only the page, your answer and the comment are stored: no cookies and no personal data.

0 of 2000 characters

Edit on GitHub: packages/meeko/src/cloudflare.ts