bshepherdson / foam-migration-test

0 stars 0 forks source link

Animated functions should by synchronized so that we don't enter the function again until the drawing is done #109

Open bshepherdson opened 10 years ago

bshepherdson commented 10 years ago

From ada...@google.com on November 21, 2013 17:13:13

This will require specifying if a listener is an afunc or not. And in the afunc case, wait until ret() is called before allowing the next listener to fire.

Original issue: http://code.google.com/p/foam-framework/issues/detail?id=109

bshepherdson commented 10 years ago

From k...@chromium.org on November 22, 2013 06:32:08

We should do some experiments to determine if this can actually happen or not. Because JS is single-threaded, if you don't return in time for the next AnimationFrame, then it would have a thread to perform the update anyway.

Adding model support for aFuncs is a good idea.

bshepherdson commented 10 years ago

From ada...@google.com on November 22, 2013 07:29:31

Right, this will only happen if your drawing code does asynchronous work, like requesting autocomplete results from a network dao.