> > > When we add more of these features, I think we will need a way to acquire > multiple locks simultaneously before running a callback. (So if we had > localStorage.runTransaction(function(storage) { ... }) and > otherLockingThing.runTransaction(function(thing) { ... }), we could also > have, for example, window.runTransaction(localStorage, otherLockingThing, > function(storage, thing) { ... }).) So it may be worth thinking about what > that API should be and what we will need to add to each feature spec to > support it. >
void acquireFlags(['foo', 'bar', baz'], callback);