method BrokerRuntime.setTimeout
BrokerRuntime.setTimeout(
fn: () => void,
ms: number
): TimerHandle

Schedules a reply timeout.

Parameters

fn: () => void

Invoked when the budget elapses

ms: number

The budget

Return Type

TimerHandle

The handle to cancel with

Usage

import { type BrokerRuntime } from "cloudflare-plugin/src/index.ts";