On Fri, Sep 4, 2009 at 2:24 AM, timeless <timel...@gmail.com> wrote: > On Sun, Aug 30, 2009 at 4:06 AM, Ian Hickson<i...@hixie.ch> wrote: > > Upon further consideration I've renamed getStorageUpdates() to > > yieldForStorageUpdates(). > > If getStorageUpdates() actually returned how *many* updates there > were, it could be a vaguely useful name. > > If the answer is 0, then my application knows it doesn't need to try > to figure out how the world changed, right? >
I like this idea except for one problem: It doesn't tell whether something got changed without your knowledge. If you call alert, access a plugin, etc it's possible to drop the lock. I think some sort of global counter, variable, etc would be more valuable since it solves both problems.