Exmld.KinesisWorker.flush

You're seeing just the function flush, go back to Exmld.KinesisWorker module for more information.

Return a list of tokens corresponding to records which have been fully processed and the latest state.

If the flush kind is :full, we await the disposition of all outstanding records before returning. Otherwise, it's :partial and we return (possibly an empty result) immediately.

If doing a full flush and any records fail to be successfully processed, we crash unless configured to skip failed records.