Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ayonli_jsext/workerd/run.ts>RunOptions

A JavaScript extension package for building strong and modern applications.
Latest
interface RunOptions
Re-export
import { type RunOptions } from "https://deno.land/x/ayonli_jsext@v0.9.72/workerd/run.ts";

Options for the run function.

Properties

optional
fn: string

If not set, invoke the default function, otherwise invoke the specified function.

optional
timeout: number

Automatically abort the task when timeout (in milliseconds).

optional
keepAlive: boolean

Instead of dropping the worker after the task has completed, keep it alive so that it can be reused by other tasks.

optional
deprecated
adapter: "worker_threads" | "child_process"

Choose whether to use worker_threads or child_process for running the script. The default setting is worker_threads.

In browsers and Deno, this option is ignored and will always use the web worker.