Uploaded image for project: 'core.async'
  1. ASYNC-55

Notification of items dropped from sliding/dropping buffers

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Labels:
      None
    • Patch:
      Code and Test

      Description

      I would like to know when items are dropped from sliding or dropping buffers, so that I can do things like logging and keeping metrics.

      The attached patch has one possible mechanism for doing this, by adding an optional second argument to sliding-buffer and dropping-buffer - a one-argument function that will be called with dropped items.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cperkins Chris Perkins
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: