UNPKG

@cheprasov/worker-thread

Version:

The WorkerThread wraps a Web Worker with a Promise, also the class creates a worker script on the fly (without having to create separate worker files). You can 'inline' your worker function in the same js file as main logic.

7 lines (6 loc) 331 B
// @flow strict export { default as ThreadFactory } from './ThreadFactory'; export { default as WorkerThread } from './Thread/WorkerThread'; export { default as TimeoutThread } from './Thread/TimeoutThread'; export { default as NoopThread } from './Thread/NoopThread'; export { default as WorkerError } from './Error/WorkerError';