No, it cannot creep. Each execute callback runs as 1 uninterrupted thread.
On Wed, Jun 9, 2010 at 4:25 PM, macagain <rgk...@gmail.com> wrote: > Do all "steps" of an IncrementalCommand run in one "tick", or does it > return control to the js event loop in between steps, thereby allowing > other commands on the deferred queue to run in between steps? e.g. > > List results = <some list returned from a service>; > > DeferredCommand.addCommand(new IncrementalCommand() { > int i=0; > public boolean execute { > doSomeReallyLongAssWorkWithRecord(results.get(i++)); > updateUI(); > return i<results.size(); > } > }); > > DeferredCommand.addCommand(new Command() { > public void execute() { > doCleanUp(); > } > }); > > i.e. will the 2nd deferred cmd (i.e. the cleanup step) always only run > after the incremental command is done, or can it creep in between > steps of the incremental command? > > Thanks much for replies! > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.