Skip to content

Documentation / @hybrid-compute/core / ComputeTaskInterface

Interface: ComputeTaskInterface<Input, Output> ​

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

Type Parameters ​

Input ​

Input = unknown

Output ​

Output = unknown

Properties ​

name ​

ts
name: string;

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

Methods ​

run() ​

ts
run(input: Input, context?: TaskContextInterface):
  | Output
| Promise<Output>;

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

Parameters ​

input ​

Input

context? ​

TaskContextInterface

Returns ​

| Output | Promise<Output>