@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.
11 lines (10 loc) • 179 B
Plain Text