[whatwg] Canvas in workers

Justin Novosad junov at google.com
Tue Oct 15 14:19:26 PDT 2013


On Sun, Oct 13, 2013 at 7:55 PM, David Bruant <bruant.d at 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.



More information about the whatwg mailing list