BufferOverflow

enum BufferOverflow : Enum<BufferOverflow>

A strategy for buffer overflow handling in channels and flows that controls what is going to be sacrificed on buffer overflow:

  • SUSPEND — the upstream that is sending or is emitting a value is suspended while the buffer is full.

  • DROP_OLDEST — drop the oldest value in the buffer on overflow, add the new value to the buffer, do not suspend.

  • DROP_LATEST — drop the latest value that is being added to the buffer right now on buffer overflow (so that buffer contents stay the same), do not suspend.

Entries

Link copied to clipboard

Drop the latest value that is being added to the buffer right now on buffer overflow (so that buffer contents stay the same), do not suspend.

Link copied to clipboard

Drop the oldest value in the buffer on overflow, add the new value to the buffer, do not suspend.

Link copied to clipboard

Suspend on buffer overflow.

Sources

Link copied to clipboard