Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

@sms/executor-node

Classes

NodeExecutor

Defined in: packages/drivers/executor/node/src/index.ts:17

Runs each plugin bundle in its own worker thread. Local-dev executor.

Implements

Constructors

Constructor
new NodeExecutor(opts?): NodeExecutor;

Defined in: packages/drivers/executor/node/src/index.ts:19

Parameters
ParameterType
optsNodeExecutorOptions
Returns

NodeExecutor

Methods

load()
load(
   bundle, 
   host, 
   opts?
): Promise<ExecutorInstance>;

Defined in: packages/drivers/executor/node/src/index.ts:23

Parameters
ParameterType
bundlePluginBundle
hostHostBridge
opts{ timeoutMs?: number; }
opts.timeoutMs?number
Returns

Promise<ExecutorInstance>

Implementation of

Executor.load

Interfaces

NodeExecutorOptions

Defined in: packages/drivers/executor/node/src/index.ts:5

Properties

callTimeoutMs?
optional callTimeoutMs?: number;

Defined in: packages/drivers/executor/node/src/index.ts:7

Per-call timeout for calls into plugin code.

resourceLimits?
optional resourceLimits?: {
  maxOldGenerationSizeMb?: number;
  maxYoungGenerationSizeMb?: number;
};

Defined in: packages/drivers/executor/node/src/index.ts:9

Memory limits passed to the worker.

maxOldGenerationSizeMb?
optional maxOldGenerationSizeMb?: number;
maxYoungGenerationSizeMb?
optional maxYoungGenerationSizeMb?: number;