Skip to content
On this page

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


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


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

Auto Import


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


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

How to use

Code demonstration

Source

SourceDocsDemo