push

fun push(item: T)

Pushes a new item into the buffer. If the buffer is full, the oldest item is overwritten.

Parameters

item

The item to add.