vue-worker
vue-worker copied to clipboard
A Vue.js plugin to use webworkers in a simply way.
As per document I am trying to install using npm I received following error c:\readinglog>npm install --save vue-worker npm WARN [email protected] requires a peer of bufferutil@^4.0.1 but none is installed....
Is it possible to access the vuex store from within a function passed onto a worker ?
for example,request callback ``` getCoreIndicatorList(params).then(({ data }) => { this.$worker.run((context,source)=>{ context.coreIndicator= source.todayTotalAmount | 0 },[this,data]). .then(() => // do something}) .catch(console.error) ``` Failed to execute 'postMessage' on 'Worker': function ()...
I have that code: ``` setInterval(() => { const options = { timeZone: "America/New_York"}, myTime = new Date(); let est_time = myTime.toLocaleString("en-US", options) let now = new Date(est_time) let millisTill8...
```javascript submitFlag() { const { flag, token } = this.$data; const info = this.info; const local = { owner: "user", repository: "repo" }; const upstream = { owner: config.owner, repository:...

Hi, I'm trying to use VueWorker in an app created with electron-vue, [https://github.com/SimulatedGREG/electron-vue]. When importing VueWorker, I get the following error, `Uncaught SyntaxError: Unexpected token import at createScript (vm.js:74) at...
Hello :) I'm new to webWorker and I'm trying to implements simple desktop notifications like this : https://web-push-book.gauntface.com/chapter-05/02-display-a-notification/#actions I can access to this.$worker but I'm totally lost on how to...
Are you able to provide an example of how this can be used in a synchronous way at all using a setTimeout or something to then resolve the promise? And...
 Can you check it for me?