ngx-transformers API / ngx-transformers/worker / createWorkerPipelineFactory
Function: createWorkerPipelineFactory()
createWorkerPipelineFactory(
worker):WorkerPipelineFactory
Defined in: worker/src/client.ts:53
A pipeline factory whose pipelines live in a Web Worker, so inference never blocks the UI thread. The worker runs runTransformersWorker() and is created lazily, on the first pipeline. Provide the factory through PIPELINE_FACTORY, or use provideTransformersWorker() from ngx-transformers which does exactly that.
A worker that fails to start or crashes rejects every pending call and is dropped; the next pipeline creates a new one.
Parameters
worker
WorkerLike | (() => WorkerLike)