Interface: EngineInit<O>
What an engine's constructor gets, in the worker or from its element on the main thread.
Type Parameters
O
O = unknown
Properties
options
readonlyoptions:O
outputs
readonlyoutputs: readonly ((item) =>Promise<void>)[]
Write to the outputs given to WorkerContext.create, in order. Each resolves once there's room.
report
readonlyreport: (report) =>void
Tells the element something, fire and forget.
Parameters
report
any
Returns
void