Re: [whatwg] Canvas in workers

On Sun, Oct 13, 2013 at 7:55 PM, David Bruant <bruant.d@gmail.com> wrote:

>
> Not directly related, but I imagine requestAnimationFrame doesn't work in
> a worker. How can a script know when to stop drawing on a given canvas?
>
> rAF doesn't work in a worker, but that is easy to work around. You can
have a rAF handler on the main thread that propagates the signal to your
workers by posting a "rAF" message to them.

Received on Tuesday, 15 October 2013 21:19:52 UTC