createRunner

API Reference for createRunner.

createRunner()

Create a reusable runner with shared resource limits and continuation configuration.

import { createRunner } from 'run';

const runner = createRunner({
  limits: { timeoutMs: 10_000 },
  syncHostFunctions: {
    values: {
      read: () => 42,
    },
  },
});

const result = await runner.run<number>({
  source: 'return 6 * 7;',
});

Import

import { createRunner } from 'run';

API Signature

Type Parameters

Prop

Type

Parameters

Prop

Type

Returns

Prop

Type