MemoryBufferedAnimationSink

constructor(flush: (replicationNumber: Int, events: List<AnimationEvent>) -> Unit)(source)

Parameters

flush

invoked once at the end of each replication with the replication number and the events collected during it. The list passed to flush is the sink's live buffer and is cleared as soon as flush returns, so the callback must consume it synchronously (copy it if it needs to keep it).