Skip to content

useWorker ​

useWorker is a js library (with typescript support) that allows you to use the Web Worker Web API, through Vue Hook. This library allows you to run the expensive function without blocking the user interface, using a simple syntax that makes use of Promise

Install ​

bash

npm i @vue-hooks-plus/use-worker

Auto Import ​

typescript

import { VueHooksPlusUseWorkerResolver } from '@vue-hooks-plus/resolvers'

How to use

Code demonstration ​

Source ​

Source · Document · Demo

Released under the MIT License.