compute.run

async run<T>(name: string, callback: () => T | Promise<T>, options: ComputeOptions) Promise<ComputeResult<T>>

Runs CPU-heavy work against a separate 10000ms budget. Normal handlers have a 500ms CPU budget and a 10-second wall deadline by default. One execution can start at most 8 jobs. name labels the job in runtime accounting; it is not an idempotency key.

Type parameters:

T