Skip to content

@graphty/graphty-element / index / WorkerCapability

Interface: WorkerCapability ​

Defined in: graphty-element/src/acceleration/types.ts:301

Whether this host can run the element's work off the main thread, and on how many threads.

Properties ​

count ​

readonly count: number

Defined in: graphty-element/src/acceleration/types.ts:305

How many worker threads the element will use. Zero when workers are unavailable.


state ​

readonly state: "active" | "unavailable"

Defined in: graphty-element/src/acceleration/types.ts:303

"active" when workers are usable here, "unavailable" when they are not.