- From: Justin Novosad <junov@google.com>
- Date: Tue, 15 Oct 2013 17:19:26 -0400
- To: David Bruant <bruant.d@gmail.com>
- Cc: WHATWG <whatwg@whatwg.org>, Kyle Huey <me@kylehuey.com>, Robert O'Callahan <robert@ocallahan.org>
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