Skip to content

Documentation / @hybrid-compute/core / HybridComputeOptionsInterface

Interface: HybridComputeOptionsInterface ​

Defined in: packages/core/src/types.ts:130

Configuration options for initializing the HybridCompute orchestrator.

Each backend is optional, but at least one must be given, and no other keys are allowed.

Example ​

ts
const options: HybridComputeOptionsInterface = {
  local: createLocalCompute(),
  remote: createRemoteCompute({ ... })
};

See ​

Properties ​

local? ​

ts
optional local?: ComputeBackendInterface;

Defined in: packages/core/src/types.ts:131

A backend that runs tasks on the calling thread.


remote? ​

ts
optional remote?: ComputeBackendInterface;

Defined in: packages/core/src/types.ts:133

A backend that sends tasks to a server or service.


worker? ​

ts
optional worker?: ComputeBackendInterface;

Defined in: packages/core/src/types.ts:132

A backend that runs tasks in a Web Worker.