Closed philippjfr closed 4 years ago
@mattpap Really not entirely happy with the implementation, but this scheme of ignoring/combining duplicate events has served us extremely well in HoloViews/Panel.
@mattpap I've implemented the other event types on this PR now because it was simpler. If you need me to I can split out the handling for MessageSent, ColumnsPatched and ColumnsStreamed events into another PR, otherwise this is ready to merge (after your review of course).
This queues events if the
combine_events
option is enabled and combines events on the same property if the previous event has not finished processing.The basic approach here is:
idle
events_idle = false
!idle
then queue event but drop any previous events on the same model attribute_idle = true