/ proof-of-concept / plate-mechanics-sim
Sign in
proof-of-concept / plate-mechanics-sim
plate-mechanics-sim / packages / core / src / runner / protocol.ts
12 lines · 486 BBlameHistoryRaw
1import type { SourceBundle } from "../generate/bundle";
2import type { PlainValue } from "./plain";
3import type { BackendInfo, RunResult } from "./types";
5export type ToWorker =
6 | { type: "run"; id: number; bundle: SourceBundle; inputs?: Record<string, PlainValue> }
7 | { type: "info"; id: number };
9export type FromWorker =
10 | { type: "output"; id: number; text: string }
11 | { type: "done"; id: number; result: RunResult }
12 | { type: "info"; id: number; backend: BackendInfo };
↑↓ move↵openescclose