josephg/ShareJS — Issue #64: Expose flush timeout
Author: nelsonsilva
Created: 2012-01-30 17:11:14+00:00
State: open

For operation intensive applications we should be able to control the flush timeout.

https://github.com/josephg/ShareJS/blob/master/src/client/doc.coffee#L265

Also there should only be a single timer, something like :

@pendingTimer ||= setTimeout ....

otherwise the behavior won't be as expected since for op bursts only the first timeout will be effective.
Then we'll get the exact same burst but with the timer callbacks and these will catch new @pendingOps and flush them immediately instead of composing them.