Skip to content

Disable highwater/lowwater feature #19

@timmolendijk

Description

@timmolendijk

I'm trying to use the library without setting any restrictions on buffer size (because if I set restrictions I will have to deal with buffers elsewhere in my code).

I've tried to read the source code (since the docs don't really mention this scenario) and it has left me with a few questions:

  • By default a high water mark of 100 items is set, but does this have any real consequences other than a console warning? I noticed that an isPaused flag is set, but then nothing is truly paused as new events will still be pushed to queue(?)

  • What is the recommended approach for disabling the back pressure (including console warning) altogether? I've tried setting highWaterMark to undefined but this won't override the default parameter value of 100. I figure I could implement highWater with an empty function, but that feels a bit hacky.

Thanks for your work on this project and I hope you will find some time help me out a little bit. Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions