Channel Parameters

Learn about some parameters of a channel and how it handles them.

On buffer overflow

To customize channels further, we can control what happens when the buffer is full (onBufferOverflow parameter). These are the options:

  • SUSPEND (default): When the buffer is full, suspend on the send method.

  • DROP_OLDEST: When the buffer is full, drop the oldest element.

  • DROP_LATEST: When the buffer is full, drop the latest element.

Get hands-on with 1200+ tech skills courses.