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

Current Time: 1744457772754

basic usageNormal sorting will block UI bleeding, while worker sorting will not

Source

Source · Document · Demo

Released under the MIT License.