dropping<T> static method

Buffer<T> dropping<T>([
  1. int limit = 10
])

Same as fixed but Overflow will silently drop the messages.

Omitting a limit value will result in a limit of 10. If buffered messages reaches limit then following new messages will be dropped.

Implementation

static Buffer<T> dropping<T>([int limit = 10]) {
  return _DroppingBuffer<T>(limit);
}