[WebSimpleDB] Introduce a pause/resume pattern for coordinated access to multiple stores

2009-12-22 Thread Pablo Castro
Whenever we take a callback that's to be called for each item in a set (e.g. with a .forEach(callback) pattern), we need a way to indicate the system whether it's ok to move to the next row and invoke the next callback or not. Otherwise, in scenarios where the callback itself performs an

Re: [WebSimpleDB] Introduce a pause/resume pattern for coordinated access to multiple stores

2009-12-22 Thread Nikunj R. Mehta
On Dec 22, 2009, at 5:39 PM, Pablo Castro wrote: Whenever we take a callback that's to be called for each item in a set (e.g. with a .forEach(callback) pattern), we need a way to indicate the system whether it's ok to move to the next row and invoke the next callback or not. Otherwise, in