vue-worker icon indicating copy to clipboard operation
vue-worker copied to clipboard

setInterval dosen't work

Open SephirothKid opened this issue 5 years ago • 5 comments

This is my code:

methods: {
   setTimer(val) {
      this.timerWorker = this.$worker.run(function(val) {
        console.log(setInterval)
        console.log(val)
        const timer = setInterval(function() {
          val -= 17
          console.log('setInterval', val)
        }, 17);
        return val
      }, [val]).then(res => {
        console.log(res)
      })
    }
}

And then, 'setInterval' didn't show up.

SephirothKid avatar Apr 12 '19 02:04 SephirothKid

in my code, it dit show up.

YUUtan1994 avatar Nov 11 '19 08:11 YUUtan1994

I have this issue too. setInterval not working inside $worker. Any solutions?

cytyler avatar Jan 10 '20 06:01 cytyler

i have this issue too!!

hemengke1997 avatar Apr 15 '20 10:04 hemengke1997

i have this issue too

XPoet avatar Sep 01 '20 07:09 XPoet

+1

GitHubJiKe avatar Feb 08 '22 09:02 GitHubJiKe