Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setInterval dosen't work #19

Open
SephirothKid opened this issue Apr 12, 2019 · 5 comments
Open

setInterval dosen't work #19

SephirothKid opened this issue Apr 12, 2019 · 5 comments

Comments

@SephirothKid
Copy link

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.

@YUUtan1994
Copy link

in my code, it dit show up.

@cytyler
Copy link

cytyler commented Jan 10, 2020

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

@hemengke1997
Copy link

i have this issue too!!

@XPoet
Copy link

XPoet commented Sep 1, 2020

i have this issue too

@GitHubJiKe
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants